2
0
Эх сурвалжийг харах

File Dialog: hook up cancel button

Miguel de Icaza 7 жил өмнө
parent
commit
829aae09c8

+ 4 - 0
Terminal.Gui/Dialogs/FileDialog.cs

@@ -320,6 +320,10 @@ namespace Terminal.Gui {
 			};
 
 			this.cancel = new Button ("Cancel");
+			this.cancel.Clicked += () => {
+				canceled = true;
+				Application.RequestStop ();
+			};
 			AddButton (cancel);
 
 			this.prompt = new Button (prompt) {