Explorar o código

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

Charlie Kindel %!s(int64=5) %!d(string=hai) anos
pai
achega
c51e4177fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.F2, "~F2~ Load", 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);