-
Notifications
You must be signed in to change notification settings - Fork 52
feat(frontend): allow continue anyway in unavailable exe path alert dialog #1375
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2561,7 +2561,8 @@ | |||||
| "UnavailableExePathAlertDialog": { | ||||||
| "dialog": { | ||||||
| "title": "Unsafe Execution Path", | ||||||
| "content": "SJMCL is currently running from a temporary or invalid directory. Your settings and game data may be lost. Please move SJMCL to another location and run it again." | ||||||
| "content": "SJMCL is currently running from a temporary or invalid directory. Your settings and game data may be lost. Please move SJMCL to another location and run it again.", | ||||||
| "btnContinue": "Run Anyway" | ||||||
|
||||||
| "btnContinue": "Run Anyway" | |
| "btnContinue": "とにかく実行" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Continue" button should be assigned the cancelRef to mark it as the least destructive action in the AlertDialog. In Chakra UI AlertDialog, the leastDestructiveRef should point to the button that performs the safer, non-destructive action (continuing) rather than the destructive action (exiting). Add ref={cancelRef} to the Button with variant="ghost" at line 52.