chatgui: save scroll/read position on app quit via aboutToQuit

Make saveChannelState() public, connect to QApplication::aboutToQuit so
state is persisted on SIGINT, tray quit, or any other shutdown.
This commit is contained in:
Evgeny committed 2026-07-24 03:24:54 +03:00
1 parent 6ef21613c8
commit 393b7d36c8
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -229,6 +229,8 @@ void MainWindow::setupConnects() {
m_channelList->setChannelUnreadCount(channelId,
m_db->getUnreadCount(channelId, lastReadMsgId));
});
connect(qApp, &QApplication::aboutToQuit, m_messageList, &MessageList::saveChannelState);
}
void MainWindow::setupTray() {