-
Notifications
You must be signed in to change notification settings - Fork 5
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
Adds Settings Dialog #38
Conversation
0e387ad
to
76df976
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, please see comments
729d7e8
to
219821b
Compare
@@ -22,6 +22,26 @@ def get_global_settings() -> QtCore.QSettings: | |||
) | |||
|
|||
|
|||
def delete_local_settings(path: str | PathLike) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this should be in the Setting class with a catchy name like delete_cache
or something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I was thinking about this, but does the settings file correspond with a particular instance of the Settings object? (The save routine is in the object as well though so . . .)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it does, we are just saving to the same place so it may not seem that way
Closes #20
This PR introduces a settings dialog, with tabs mapped to the settings groups established in the settings model. Project settings are updated with any changes made, excluding resetting to the global default.
This PR also addresses a bug in the code in that menu actions affecting a project were all enabled (unlike the taskbar which was correctly disabled), causing the GUI to crash in some cases. The appropriate menu actions have been disabled on startup.