Confirm before resetting settings to defaults#5186
Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit intoJul 23, 2026
Conversation
Copilot started reviewing on behalf of
Gabriel Dufresne (GabrielDuf)
July 23, 2026 18:09
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a confirmation step to prevent accidental settings resets.
Changes:
- Introduces a localized reset confirmation dialog.
- Resets settings only after explicit confirmation.
- Adds the English warning message.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
ResetSettingsDialog.axaml.cs |
Implements confirmation behavior and initial focus. |
ResetSettingsDialog.axaml |
Defines the accessible confirmation UI. |
GeneralViewModel.cs |
Displays the dialog before resetting settings. |
lang_en.json |
Adds the confirmation warning translation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Marc-André Moreau (mamoreau-devolutions)
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a confirmation dialog before resetting UniGetUI to its default settings, improving user experience and preventing accidental resets. The main changes include implementing a new dialog window, updating the reset logic to show the confirmation dialog, and adding the necessary translation string.
Reset Settings Confirmation Dialog:
ResetSettingsDialogwith UI and logic to confirm resetting UniGetUI to default settings. The dialog presents a warning message and "Cancel" and "Reset UniGetUI" buttons. (src/UniGetUI.Avalonia/Views/DialogPages/ResetSettingsDialog.axaml``src/UniGetUI.Avalonia/Views/DialogPages/ResetSettingsDialog.axaml.csResetSettingscommand inGeneralViewModel.csto show the confirmation dialog and only proceed with the reset if the user confirms. (src/UniGetUI.Avalonia/ViewModels/Pages/SettingsPages/GeneralViewModel.csLocalization:
lang_en.jsonfor the dialog's warning message. (src/Languages/lang_en.jsonsrc/Languages/lang_en.jsonR87)