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

Prevent settings from being saved when close button is pressed instead of save #1679

Open
wants to merge 36 commits into
base: main
Choose a base branch
from

Conversation

rainmakerv3
Copy link
Contributor

Proposed fix for #1669, more detail on the issue can be seen on that page

There are actually two issues which cause settings to be saved when the close button is pressed:

  1. MainWindow and Emulator destructor functions both call the Config::Save function, which saves every single config variable, including those changed in the config settings dialog box. To resolve this, I created another save function for just those two destructors, which save only the variables related to the main window itself, such as main window dimensions, recent files, and grid/list view settings.

  2. Config variables are connected to each change in the config windows QT widgets, and the UI loads in these variables instead of the values saved to the config file. I rewrote this such that the config variables change value only upon saving, and that UI values are loaded from the config file

Not included in this PR is fixing how the translations are re-applied when changing emulator language.

rainmakerv3 and others added 30 commits November 13, 2024 12:23
This reverts commit bf6fcfa.
Clang format

Clang 2

Clang tool hates me apparently

That was the clang tool again I swear
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.

1 participant