Add Reset to Defaults button to General settings#44
Open
HashaamKhan19 wants to merge 1 commit into
Open
Conversation
Adds a "Reset to Defaults" button that clears known UserDefaults keys (runner choice, appearance toggles, update interval, metrics visibility/configuration) and re-seeds the affected stores, without touching custom runners or custom metrics sources. A confirmation dialog guards the action. Runner/Metrics settings tabs also resync their cached state from UserDefaults whenever they appear, since macOS only keeps the active Settings tab mounted. Signed-off-by: HashaamKhan19 <hashaamkhan4247@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Collaborator
|
I don't see why this feature is necessary. The default settings when installing the app are not particularly what I recommend; they are simply neutral. Since the current settings are not complicated, the need for this feature seems low at this stage. |
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.
Adds a "Reset to Defaults" button that clears known UserDefaults keys (runner choice, appearance toggles, update interval, metrics visibility/configuration) and re-seeds the affected stores, without touching custom runners or custom metrics sources.
A confirmation dialog guards the action. Runner/Metrics settings tabs also resync their cached state from UserDefaults whenever they appear, since macOS only keeps the active Settings tab mounted.
Context of Contribution
Summary of the Proposal
Adds a "Reset to Defaults" button to the General settings tab. It clears the known UserDefaults keys (runner choice, appearance toggles, update interval, metrics visibility/configuration) and re-seeds the affected stores/UI, without touching custom runners or custom metrics sources. A confirmation dialog guards against accidental resets.
Reason for the new feature
Users who experiment with settings have no quick way back to defaults short of manually reverting every toggle or reinstalling the app. This adds a standard, low-risk escape hatch that benefits anyone who's fiddled with their settings.
Checklist