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

fix: Fixed account switch not being saved if no other settings were changed #5558

Merged
merged 3 commits into from
Aug 24, 2024

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Aug 24, 2024

Previously, if a user changed their user through the account switch dialog but didn't change any settings, we never saved this until the end of the application. If the application shut down uncleanly, that means the user would have to change account again on next startup.

With this PR, we now request a save of settings when the user changes their account.

This means we don't have to directly interface with `pajlada::Settings`
as much outside of the Settings class

It will use args to figure out whether to actually save data there
Copy link
Member Author

@pajlada pajlada left a comment

Choose a reason for hiding this comment

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

image

@pajlada pajlada enabled auto-merge (squash) August 24, 2024 12:41
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

@@ -1,5 +1,6 @@
#pragma once

#include "common/Args.hpp"
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: 'common/Args.hpp' file not found [clang-diagnostic-error]

#include "common/Args.hpp"
         ^

@pajlada pajlada merged commit 9f588b7 into master Aug 24, 2024
17 checks passed
@pajlada pajlada deleted the fix/request-setting-change-when-changing-account branch August 24, 2024 13:02
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.

None yet

1 participant