gui: use soft close from menuitem instead of hard pkill

This commit is contained in:
mappu 2024-06-15 11:44:19 +12:00
parent f64522dfa1
commit f432b52652

View File

@ -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) {