fix openblive admin not able qiege

This commit is contained in:
aynakeya
2024-08-07 21:01:30 +08:00
parent 9f8b103be1
commit 156901f14c
7 changed files with 16 additions and 4 deletions

View File

@@ -82,5 +82,12 @@ func Initialize() {
MainWindow.SetFixedSize(true)
if config.General.ShowSystemTray {
setupSysTray()
} else {
MainWindow.SetCloseIntercept(
func() {
// save twice i don;t care
_ = config.SaveToConfigFile(config.ConfigPath)
MainWindow.Close()
})
}
}