瀏覽代碼

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

Charlie Kindel 5 年之前
父節點
當前提交
c51e4177fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);