forked from Silverfish/proton-bridge
fix: bridge always restarst even when an error updating occurred
This commit is contained in:
@ -412,9 +412,9 @@ func (f *FrontendQt) startManualUpdate() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.WithError(err).Error("An error occurred while installing updates manually")
|
logrus.WithError(err).Error("An error occurred while installing updates manually")
|
||||||
f.Qml.NotifyManualUpdateError()
|
f.Qml.NotifyManualUpdateError()
|
||||||
|
} else {
|
||||||
|
f.Qml.NotifyManualUpdateRestartNeeded()
|
||||||
}
|
}
|
||||||
|
|
||||||
f.Qml.NotifyManualUpdateRestartNeeded()
|
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -652,8 +652,8 @@ func (s *FrontendQt) startManualUpdate() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.WithError(err).Error("An error occurred while installing updates manually")
|
logrus.WithError(err).Error("An error occurred while installing updates manually")
|
||||||
s.Qml.NotifyManualUpdateError()
|
s.Qml.NotifyManualUpdateError()
|
||||||
|
} else {
|
||||||
|
s.Qml.NotifyManualUpdateRestartNeeded()
|
||||||
}
|
}
|
||||||
|
|
||||||
s.Qml.NotifyManualUpdateRestartNeeded()
|
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user