forked from Mirror/Ryujinx
Rollback the CreateExitDialog function that was lost with auto updater
This commit is contained in:
parent
ce87650d81
commit
ace67ed324
2 changed files with 6 additions and 1 deletions
|
@ -142,7 +142,7 @@ namespace Ryujinx.Ui
|
||||||
{
|
{
|
||||||
if (keyboard.IsKeyDown(OpenTK.Input.Key.Escape))
|
if (keyboard.IsKeyDown(OpenTK.Input.Key.Escape))
|
||||||
{
|
{
|
||||||
if (GtkDialog.CreateChoiceDialog("Ryujinx - Exit", "Are you sure you want to stop emulation?", "All unsaved data will be lost!"))
|
if (GtkDialog.CreateExitDialog())
|
||||||
{
|
{
|
||||||
Exit();
|
Exit();
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,5 +56,10 @@ namespace Ryujinx.Ui
|
||||||
|
|
||||||
return response == ResponseType.Yes;
|
return response == ResponseType.Yes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static bool CreateExitDialog()
|
||||||
|
{
|
||||||
|
return CreateChoiceDialog("Ryujinx - Exit", "Are you sure you want to stop emulation?", "All unsaved data will be lost!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue