summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui.go b/gui.go
index 36d297e..9199eca 100644
--- a/gui.go
+++ b/gui.go
@@ -142,6 +142,12 @@ func mouseClick(b *ButtonMap) {
createVmBox(Data.cloudTab, b.VM)
}
}
+ if (b.Action == "WINDOW CLOSE") {
+ b.W.Hide()
+ // TODO: fix this (seems to crash? maybe because we are in the button here?)
+ // b.W.Destroy()
+ return
+ }
if (b.Action == "ADD") {
log.Println("\tgui.mouseClick() SHOULD ADD VM HERE?")
}