mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
open channel if its the first opened tab
This commit is contained in:
1 parent
c30ab91738
commit
63db16a711
3 files changed
+10
No files matched your search
@@ -170,6 +170,10 @@ void ChatWindow::SetTopic(const std::string &text) {
|
||||
|
||||
#ifdef WITH_LIBHANDY
|
||||
void ChatWindow::OpenNewTab(Snowflake id) {
|
||||
// open if its the first tab (in which case it really isnt a tab but whatever)
|
||||
if (m_tab_switcher->GetNumberOfTabs() == 0) {
|
||||
m_signal_action_channel_click.emit(id, false);
|
||||
}
|
||||
m_tab_switcher->AddChannelTab(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user