Sfoglia il codice sorgente

Rollback the CreateExitDialog function that was lost with auto updater

Thog 5 anni fa
parent
commit
ace67ed324
2 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 1 1
      Ryujinx/Ui/GLRenderer.cs
  2. 5 0
      Ryujinx/Ui/GtkDialog.cs

+ 1 - 1
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();
                             }

+ 5 - 0
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!");
+        }
     }
 }