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
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package main
import (
"fmt"
"os"
"strings"
"unsafe"
@ -160,7 +159,7 @@ func (f *TMainForm) OnMnuFileSqliteMemoryClick(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) {