mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
dont expand channel list when changing tabs
This commit is contained in:
@@ -101,10 +101,10 @@ void MainWindow::UpdateChatWindowContents() {
|
||||
m_members.UpdateMemberList();
|
||||
}
|
||||
|
||||
void MainWindow::UpdateChatActiveChannel(Snowflake id) {
|
||||
void MainWindow::UpdateChatActiveChannel(Snowflake id, bool expand_to) {
|
||||
m_chat.SetActiveChannel(id);
|
||||
m_members.SetActiveChannel(id);
|
||||
m_channel_list.SetActiveChannel(id);
|
||||
m_channel_list.SetActiveChannel(id, expand_to);
|
||||
m_content_stack.set_visible_child("chat");
|
||||
}
|
||||
|
||||
@@ -281,7 +281,7 @@ void MainWindow::SetupMenu() {
|
||||
});
|
||||
|
||||
m_menu_view_friends.signal_activate().connect([this] {
|
||||
UpdateChatActiveChannel(Snowflake::Invalid);
|
||||
UpdateChatActiveChannel(Snowflake::Invalid, true);
|
||||
m_members.UpdateMemberList();
|
||||
m_content_stack.set_visible_child("friends");
|
||||
});
|
||||
|
||||
@@ -13,7 +13,7 @@ public:
|
||||
void UpdateMembers();
|
||||
void UpdateChannelListing();
|
||||
void UpdateChatWindowContents();
|
||||
void UpdateChatActiveChannel(Snowflake id);
|
||||
void UpdateChatActiveChannel(Snowflake id, bool expand_to);
|
||||
Snowflake GetChatActiveChannel() const;
|
||||
void UpdateChatNewMessage(const Message &data);
|
||||
void UpdateChatMessageDeleted(Snowflake id, Snowflake channel_id);
|
||||
|
||||
Reference in New Issue
Block a user