-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
settings: add Show Confirm Exit toggle #1856
Conversation
{ | ||
End(_emulationContext); | ||
} | ||
} | ||
|
||
private void Window_Close(object sender, DeleteEventArgs args) | ||
{ | ||
if (!_gameLoaded || GtkDialog.CreateExitDialog()) | ||
if (!_gameLoaded || !ConfigurationState.Instance.ShowConfirmExit || GtkDialog.CreateExitDialog()) |
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.
I know that I'm calling !ConfigurationState.Instance.ShowConfirmExit
every time that is called GtkDialog.CreateExitDialog
.... and it looks a little ugly for me.
Maybe we could do it better?
The "Check for" text doesn't make sense here. The option should just be 'Show "Confirm Exit" Dialog' |
Would also be good to add the appropriate stuff to |
@EmulationFanatic @SeraUQ @AcK77 Done. |
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.
lgtm
Needs a rebase |
@AcK77 Done |
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.
Lgtm!
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.
lgtm, thanks
Closes #1853