mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
fix unchecked optionals
also discard exceptions in file cache futures
This commit is contained in:
@@ -227,7 +227,7 @@ void ChannelList::UpdateChannel(Snowflake id) {
|
||||
Gtk::TreeModel::iterator new_parent;
|
||||
if (channel->ParentID.has_value())
|
||||
new_parent = GetIteratorForChannelFromID(*channel->ParentID);
|
||||
else
|
||||
else if (channel->GuildID.has_value())
|
||||
new_parent = GetIteratorForGuildFromID(*channel->GuildID);
|
||||
|
||||
if (new_parent && iter->parent() != new_parent)
|
||||
|
||||
Reference in New Issue
Block a user