only show update popup when a new version drops

This commit is contained in:
aomizu
2025-05-21 14:41:29 +09:00
parent 9fa2438807
commit dca92067e7

View File

@@ -23,7 +23,7 @@ func main() {
go func() {
prefs, _ := utils.LoadPrefs()
latest, notes, update, err := utils.CheckForUpdate(appVersion)
if err == nil && update && prefs.SuppressedUpdateVersion != latest {
if err == nil && update && latest != appVersion && prefs.SuppressedUpdateVersion != latest {
checkbox := widget.NewCheck("Do not show this anymore", func(bool) {})
content := container.NewVBox(
widget.NewLabel("A new version ("+latest+") is available!"),