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

Delete Preferences modal is confusing #3612

Open
hofstee opened this issue Mar 4, 2024 · 0 comments
Open

Delete Preferences modal is confusing #3612

hofstee opened this issue Mar 4, 2024 · 0 comments

Comments

@hofstee
Copy link

hofstee commented Mar 4, 2024

I unknowingly opened Hammerspoon while trying to open Force Quit Applications, which led to the "Do you want to delete the preferences?" window popping up. The options presented are Continue and Delete Preferences, which both feel like they will delete the preferences.

How about renaming Continue to Cancel instead (which should also allow pressing Esc to get out of this unwanted situation)? Maybe also potentially marking the Delete Preferences button with hasDestructiveAction since I notice the minimum macOS version is 11.0 now.

NSAlert *alert = [[NSAlert alloc] init];
[alert addButtonWithTitle:@"Continue"];
[alert addButtonWithTitle:@"Delete Preferences"];
[alert setMessageText:@"Do you want to delete the preferences?"];
[alert setInformativeText:@"Deleting the preferences will reset all Hammerspoon settings (including everything that uses hs.settings) to their defaults."];
[alert setAlertStyle:NSAlertStyleWarning];

modal dialog

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

No branches or pull requests

1 participant