explicitly expand guild row when switching to it in classic view

This commit is contained in:
ouwou committed 2024-01-08 03:09:30 -05:00
1 parent 6f84175258
commit b700aa85d8
1 file changed
+6
@@ -310,6 +310,12 @@ void ChannelListTree::SetClassic(bool value) {
void ChannelListTree::SetSelectedGuild(Snowflake guild_id) {
m_classic_selected_guild = guild_id;
m_filter_model->refilter();
auto guild_iter = GetIteratorForGuildFromID(guild_id);
if (guild_iter) {
if (auto filter_iter = m_filter_model->convert_child_iter_to_iter(guild_iter)) {
m_view.expand_row(m_filter_model->get_path(filter_iter), false);
}
}
}
void ChannelListTree::OnPanedPositionChanged() {