forked from Silverfish/proton-bridge
[GODT-961] Update release notes link
* on release notes, check updates if link missing * on update set release note link * update version and links with every check * clean old release notes * change paths to IEapp notes
This commit is contained in:
@ -163,14 +163,18 @@ func (s *FrontendQt) Loop() (err error) {
|
||||
}
|
||||
|
||||
func (s *FrontendQt) NotifyManualUpdate(update updater.VersionInfo, canInstall bool) {
|
||||
s.Qml.SetUpdateVersion(update.Version.String())
|
||||
s.Qml.SetUpdateLandingPage(update.LandingPage)
|
||||
s.Qml.SetUpdateReleaseNotesLink(update.ReleaseNotesPage)
|
||||
s.SetVersion(update)
|
||||
s.Qml.SetUpdateCanInstall(canInstall)
|
||||
s.updateInfo = update
|
||||
s.Qml.NotifyManualUpdate()
|
||||
}
|
||||
|
||||
func (s *FrontendQt) SetVersion(version updater.VersionInfo) {
|
||||
s.Qml.SetUpdateVersion(version.Version.String())
|
||||
s.Qml.SetUpdateLandingPage(version.LandingPage)
|
||||
s.Qml.SetUpdateReleaseNotesLink(version.ReleaseNotesPage)
|
||||
s.updateInfo = version
|
||||
}
|
||||
|
||||
func (s *FrontendQt) NotifySilentUpdateInstalled() {
|
||||
s.Qml.NotifySilentUpdateRestartNeeded()
|
||||
}
|
||||
@ -420,6 +424,8 @@ func (s *FrontendQt) checkForUpdates() {
|
||||
return
|
||||
}
|
||||
|
||||
s.SetVersion(version)
|
||||
|
||||
if !s.updater.IsUpdateApplicable(version) {
|
||||
logrus.Debug("No need to update")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user