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

Add warnings and volatile flag to settings #697

Merged
merged 1 commit into from
Jul 3, 2023
Merged

Conversation

kk7ds
Copy link
Owner

@kk7ds kk7ds commented Jul 2, 2023

This adds two functions for settings. A warning message can be added,
which will either always be displayed to the user when they change the
value, or only when they change it away from some default. They are
given the opportunity to cancel the change if the warning makes them
reconsider.

Also, a setting can be marked "volatile" which will cause the settings
tab to be fully reloaded when it has been changed. This resets the
view as well, so it's not ideal, but this can be used when one setting
necessarily impacts another.

@kk7ds
Copy link
Owner Author

kk7ds commented Jul 2, 2023

@KC9HI FYI, this is what I was thinking for "careful with this setting" warning dialogs. I haven't tested this on windows yet, but here it is. I made the modified firmware toggle for the UV-K5 use it. We should probably similarly warn for other settings where the user can cause mayhem by changing it.

This adds two functions for settings. A warning message can be added,
which will either always be displayed to the user when they change the
value, or only when they change it away from some default. They are
given the opportunity to cancel the change if the warning makes them
reconsider.

Also, a setting can be marked "volatile" which will cause the settings
tab to be fully reloaded when it has been changed. This resets the
view as well, so it's not ideal, but this can be used when one setting
necessarily impacts another.

Fixes #10695
@kk7ds kk7ds merged commit b257795 into master Jul 3, 2023
6 checks passed
@kk7ds kk7ds deleted the settings-warning branch July 3, 2023 03:33
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