summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-26 15:03:20 -0700
committerJeff Carr <[email protected]>2019-05-26 15:03:20 -0700
commit3bf115b56e75db0488a797f110c8717ff9a5a966 (patch)
treedc0c2b8b0f1a1c5a7043150df122a1db7db79189 /gui.go
parent59629136af4b87dffc50d06144627a19fc5536e0 (diff)
open and close windows on linux for the VM
Signed-off-by: Jeff Carr <[email protected]>
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?")
}