add updater

This commit is contained in:
aynakeya
2024-05-06 08:17:30 +08:00
parent 68c7c591ff
commit f24b3e73fb
10 changed files with 130 additions and 85 deletions

View File

@@ -78,28 +78,9 @@ func Initialize() {
dialog.ShowError(err, MainWindow)
})
checkUpdate()
MainWindow.SetFixedSize(true)
if config.General.ShowSystemTray {
setupSysTray()
}
}
//
//func checkUpdate() {
// l().Info("checking updates...")
// err := API.App().CheckUpdate()
// if err != nil {
// showDialogIfError(err)
// l().Warnf("check update failed", err)
// return
// }
// l().Infof("latest version: v%s", API.App().LatestVersion().Version)
// if API.App().LatestVersion().Version > API.App().Version().Version {
// l().Info("new update available")
// dialog.ShowCustom(
// i18n.T("gui.update.new_version"),
// "OK",
// widget.NewRichTextFromMarkdown(API.App().LatestVersion().Info),
// MainWindow)
// }
//}