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:
1 parent
6ef21613c8
commit
393b7d36c8
2 files changed
+3
-1
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user