mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-18 03:25:46 +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;
|
continue;
|
||||||
toSave.append(chat);
|
toSave.append(chat);
|
||||||
}
|
}
|
||||||
if (toSave.isEmpty())
|
if (toSave.isEmpty()) {
|
||||||
|
emit saveChatsFinished();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ChatSaver *saver = new ChatSaver;
|
ChatSaver *saver = new ChatSaver;
|
||||||
connect(this, &ChatListModel::requestSaveChats, saver, &ChatSaver::saveChats, Qt::QueuedConnection);
|
connect(this, &ChatListModel::requestSaveChats, saver, &ChatSaver::saveChats, Qt::QueuedConnection);
|
||||||
|
Loading…
Reference in New Issue
Block a user