Save chats on quit, even if window isn't closed first (#3387)

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel
2025-01-16 11:59:32 -05:00
committed by GitHub
parent cc5ed4737f
commit 4812ddf1f2
4 changed files with 57 additions and 15 deletions

View File

@@ -54,7 +54,7 @@ Window {
systemTrayIcon.shouldClose = true;
window.shouldClose = true;
savingPopup.open();
ChatListModel.saveChats();
ChatListModel.saveChatsForQuit();
}
}
}
@@ -231,8 +231,8 @@ Window {
window.shouldClose = true;
savingPopup.open();
ChatListModel.saveChats();
close.accepted = false
ChatListModel.saveChatsForQuit();
close.accepted = false;
}
Connections {