Browse Source

Fixed request shutdown buttons

Krzysztof Krysiński 2 months ago
parent
commit
c2286de0b6
2 changed files with 6 additions and 2 deletions
  1. 1 1
      src/Drawie
  2. 5 1
      src/PixiEditor/Initialization/ClassicDesktopEntry.cs

+ 1 - 1
src/Drawie

@@ -1 +1 @@
-Subproject commit e1f7b5c978357058469cae0458211057d9f4cbe8
+Subproject commit 6a22e1b5affd0906a949f97b755ae588eda7980a

+ 5 - 1
src/PixiEditor/Initialization/ClassicDesktopEntry.cs

@@ -237,10 +237,14 @@ internal class ClassicDesktopEntry
                         new LocalizedString("SESSION_UNSAVED_DATA", "Shutdown"),
                         new LocalizedString("SESSION_UNSAVED_DATA", "Shutdown"),
                         $"Shutdown");
                         $"Shutdown");
 
 
-                    if (confirmation != ConfirmationType.Yes)
+                    if (confirmation == ConfirmationType.Yes)
                     {
                     {
                         desktop.Shutdown();
                         desktop.Shutdown();
                     }
                     }
+                    else
+                    {
+                        e.Cancel = true;
+                    }
                 });
                 });
             });
             });
         }
         }