From b4ab88f7086d87736848fc026bc87db651f8732e Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 21 Apr 2022 14:41:45 -0400 Subject: add opened tabs to state --- src/components/chatwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/components/chatwindow.cpp') diff --git a/src/components/chatwindow.cpp b/src/components/chatwindow.cpp index 99ec8a0..f51b58f 100644 --- a/src/components/chatwindow.cpp +++ b/src/components/chatwindow.cpp @@ -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 { -- cgit v1.2.3