Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always save chats to disk, but save them as text by default #1495

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

manyoso
Copy link
Collaborator

@manyoso manyoso commented Oct 11, 2023

This also changes the UI behavior to always open a 'New Chat' and setting it as current instead of setting a restored chat as current. This improves usability by not requiring the user to wait if they want to immediately start chatting.

…o changes

the UI behavior to always open a 'New Chat' and setting it as current instead
of setting a restored chat as current. This improves usability by not requiring
the user to wait if they want to immediately start chatting.
@manyoso manyoso requested review from apage43 and cebtenzzre October 11, 2023 16:15
@cebtenzzre cebtenzzre changed the title Always save chats to disk, but save them as text by default. This als… always save chats to disk, but save them as text by default Oct 11, 2023
@@ -54,6 +54,8 @@ class Chat : public QObject
}
ChatModel *chatModel() { return m_chatModel; }

bool isNewChat() const { return m_name == tr("New Chat") && !m_chatModel->count(); }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to check the name of the chat here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doubly weird to match on a localized string - does it not work without that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't? But if someone took the time to save the chat to a new name I guess we'd want to serialize it as it is work done by the user and guessing they'd want to save to disk?

@manyoso manyoso merged commit 908aec2 into main Oct 12, 2023
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants