Skip to content

Add Reset to Defaults button to General settings#44

Open
HashaamKhan19 wants to merge 1 commit into
runcat-dev:mainfrom
HashaamKhan19:feature/reset-to-defaults
Open

Add Reset to Defaults button to General settings#44
HashaamKhan19 wants to merge 1 commit into
runcat-dev:mainfrom
HashaamKhan19:feature/reset-to-defaults

Conversation

@HashaamKhan19

Copy link
Copy Markdown

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

  • Bug Fix
  • Refactoring
  • New Feature
  • Others

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

  • I have read the CONTRIBUTING.md and agree to follow it.
  • This PR does not contain commits of multiple contexts.
  • Code follows proper indentation and naming conventions.
  • Implemented using only APIs that can be submitted to the App Store.

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>
@Kyome22

Kyome22 commented Jul 18, 2026

Copy link
Copy Markdown
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.

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.

2 participants