mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-09-11 13:25:35 +03: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