add opened tabs to state

This commit is contained in:
ouwou
2022-04-21 14:41:45 -04:00
parent 2dab595476
commit b4ab88f708
7 changed files with 62 additions and 0 deletions

View File

@@ -172,6 +172,14 @@ void ChatWindow::SetTopic(const std::string &text) {
void ChatWindow::OpenNewTab(Snowflake id) {
m_tab_switcher->AddChannelTab(id);
}
TabsState ChatWindow::GetTabsState() {
return m_tab_switcher->GetTabsState();
}
void ChatWindow::UseTabsState(const TabsState &state) {
m_tab_switcher->UseTabsState(state);
}
#endif
Snowflake ChatWindow::GetActiveChannel() const {