settings: add Show Confirm Exist toggle (#1856)
This commit is contained in:
parent
5be6ec6364
commit
1e5b37c94f
8 changed files with 63 additions and 5 deletions
|
@ -907,7 +907,7 @@ namespace Ryujinx.Ui
|
|||
|
||||
private void Exit_Pressed(object sender, EventArgs args)
|
||||
{
|
||||
if (!_gameLoaded || GtkDialog.CreateExitDialog())
|
||||
if (!_gameLoaded || !ConfigurationState.Instance.ShowConfirmExit || GtkDialog.CreateExitDialog())
|
||||
{
|
||||
End();
|
||||
}
|
||||
|
@ -915,7 +915,7 @@ namespace Ryujinx.Ui
|
|||
|
||||
private void Window_Close(object sender, DeleteEventArgs args)
|
||||
{
|
||||
if (!_gameLoaded || GtkDialog.CreateExitDialog())
|
||||
if (!_gameLoaded || !ConfigurationState.Instance.ShowConfirmExit || GtkDialog.CreateExitDialog())
|
||||
{
|
||||
End();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue