mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
File Dialog: hook up cancel button
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user