fix(gui): show restarting modal during upgrade restart (fixes #1248) (#10566)

Signed-off-by: steadytao <mail@steadytao.com>
Signed-off-by: Jakob Borg <jakob@kastelo.net>
Co-authored-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Tao
2026-02-11 09:46:37 +00:00
committed by GitHub
co-authored by Jakob Borg
parent 5cf9168dc2
commit f86c1d83db
4 changed files with 60 additions and 2 deletions
+5
View File
@@ -57,6 +57,7 @@ const (
ListenAddressesChanged
LoginAttempt
Failure
UpgradeRestartScheduled
AllEvents = (1 << iota) - 1
)
@@ -134,6 +135,8 @@ func (t EventType) String() string {
return "FolderWatchStateChanged"
case Failure:
return "Failure"
case UpgradeRestartScheduled:
return "UpgradeRestartScheduled"
default:
return "Unknown"
}
@@ -221,6 +224,8 @@ func UnmarshalEventType(s string) EventType {
return FolderWatchStateChanged
case "Failure":
return Failure
case "UpgradeRestartScheduled":
return UpgradeRestartScheduled
default:
return 0
}