diff options
| author | Jeff Carr <[email protected]> | 2019-05-26 15:03:20 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-26 15:03:20 -0700 |
| commit | 3bf115b56e75db0488a797f110c8717ff9a5a966 (patch) | |
| tree | dc0c2b8b0f1a1c5a7043150df122a1db7db79189 /gui.go | |
| parent | 59629136af4b87dffc50d06144627a19fc5536e0 (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.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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?") } |
