Sfoglia il codice sorgente

made it so Ctrl-X on status bar actually quits (#362)

Charlie Kindel 5 anni fa
parent
commit
c51e4177fe
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Example/demo.cs

+ 1 - 1
Example/demo.cs

@@ -517,7 +517,7 @@ static class Demo {
 			new StatusItem(Key.F1, "~F1~ Help", () => Help()),
 			new StatusItem(Key.F1, "~F1~ Help", () => Help()),
 			new StatusItem(Key.F2, "~F2~ Load", null),
 			new StatusItem(Key.F2, "~F2~ Load", null),
 			new StatusItem(Key.F3, "~F3~ Save", null),
 			new StatusItem(Key.F3, "~F3~ Save", null),
-			new StatusItem(Key.ControlX, "~^X~ Quit", () => Quit()),
+			new StatusItem(Key.ControlX, "~^X~ Quit", () => { if (Quit ()) top.Running = false; }),
 		});
 		});
 
 
 		win.Add (drag, dragText);
 		win.Add (drag, dragText);