gui: use soft close from menuitem instead of hard pkill
This commit is contained in:
parent
f64522dfa1
commit
f432b52652
3
main.go
3
main.go
@ -2,7 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
|
||||||
"strings"
|
"strings"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
@ -160,7 +159,7 @@ func (f *TMainForm) OnMnuFileSqliteMemoryClick(sender vcl.IObject) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *TMainForm) OnMnuFileExitClick(sender vcl.IObject) {
|
func (f *TMainForm) OnMnuFileExitClick(sender vcl.IObject) {
|
||||||
os.Exit(0)
|
f.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *TMainForm) OnNavChange(sender vcl.IObject, node *vcl.TTreeNode) {
|
func (f *TMainForm) OnNavChange(sender vcl.IObject, node *vcl.TTreeNode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user