mirror of
https://github.com/uowuo/abaddon.git
synced 2025-03-04 03:03:16 -05:00
explicitly expand guild row when switching to it in classic view
This commit is contained in:
parent
6f84175258
commit
b700aa85d8
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user