diff options
| author | Thog <me@thog.eu> | 2020-10-10 01:22:25 +0200 |
|---|---|---|
| committer | Thog <me@thog.eu> | 2020-10-10 01:22:25 +0200 |
| commit | ace67ed324a70121cbe466a94c8b633a9826b921 (patch) | |
| tree | 6a158da22b6118d037d099a7f5900015e711a80f | |
| parent | ce87650d818bfe89403358380ff21aa1b56bb8a1 (diff) | |
Rollback the CreateExitDialog function that was lost with auto updater
| -rw-r--r-- | Ryujinx/Ui/GLRenderer.cs | 2 | ||||
| -rw-r--r-- | Ryujinx/Ui/GtkDialog.cs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Ryujinx/Ui/GLRenderer.cs b/Ryujinx/Ui/GLRenderer.cs index d5ddee0f..d8fc3e15 100644 --- a/Ryujinx/Ui/GLRenderer.cs +++ b/Ryujinx/Ui/GLRenderer.cs @@ -142,7 +142,7 @@ namespace Ryujinx.Ui { 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(); } diff --git a/Ryujinx/Ui/GtkDialog.cs b/Ryujinx/Ui/GtkDialog.cs index e7201348..f86b7016 100644 --- a/Ryujinx/Ui/GtkDialog.cs +++ b/Ryujinx/Ui/GtkDialog.cs @@ -56,5 +56,10 @@ namespace Ryujinx.Ui 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!"); + } } }
\ No newline at end of file |
