fix: set updating to false when checking for updates failed

This commit is contained in:
Siyuan 2025-11-17 12:27:07 +00:00
parent 3b0efa7d20
commit c19bd0d46b
1 changed files with 1 additions and 0 deletions

View File

@ -148,6 +148,7 @@ func (s *State) doUpdate(ctx context.Context, params UpdateParams) error {
appUpdate, systemUpdate, err := s.getUpdateStatus(ctx, params)
if err != nil {
s.updating = false
return s.componentUpdateError("Error checking for updates", err, &scopedLogger)
}