mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-17 17:02:09 +00:00
Exit early when no chats are saved.
This commit is contained in:
parent
bd58c46da0
commit
508993de75
@ -84,8 +84,10 @@ void ChatListModel::saveChats()
|
||||
continue;
|
||||
toSave.append(chat);
|
||||
}
|
||||
if (toSave.isEmpty())
|
||||
if (toSave.isEmpty()) {
|
||||
emit saveChatsFinished();
|
||||
return;
|
||||
}
|
||||
|
||||
ChatSaver *saver = new ChatSaver;
|
||||
connect(this, &ChatListModel::requestSaveChats, saver, &ChatSaver::saveChats, Qt::QueuedConnection);
|
||||
|
Loading…
Reference in New Issue
Block a user