app: replace driver.Close with Perform(ActionClose)

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-06-23 14:31:44 +02:00
parent 43116400d0
commit 371de3462b
9 changed files with 26 additions and 45 deletions
+3 -4
View File
@@ -375,6 +375,9 @@ func (w *window) Perform(acts system.Action) {
C.raiseWindow(w.window)
}
})
if acts&system.ActionClose != 0 {
C.closeWindow(w.window)
}
}
func (w *window) SetCursor(cursor pointer.Cursor) {
@@ -413,10 +416,6 @@ func (w *window) runOnMain(f func()) {
})
}
func (w *window) Close() {
C.closeWindow(w.window)
}
func (w *window) setStage(stage system.Stage) {
if stage == w.stage {
return