mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
[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:
@ -118,14 +118,18 @@ func (f *FrontendQt) Loop() (err error) {
|
||||
}
|
||||
|
||||
func (f *FrontendQt) NotifyManualUpdate(update updater.VersionInfo, canInstall bool) {
|
||||
f.Qml.SetUpdateVersion(update.Version.String())
|
||||
f.Qml.SetUpdateLandingPage(update.LandingPage)
|
||||
f.Qml.SetUpdateReleaseNotesLink(update.ReleaseNotesPage)
|
||||
f.SetVersion(update)
|
||||
f.Qml.SetUpdateCanInstall(canInstall)
|
||||
f.updateInfo = update
|
||||
f.Qml.NotifyManualUpdate()
|
||||
}
|
||||
|
||||
func (f *FrontendQt) SetVersion(version updater.VersionInfo) {
|
||||
f.Qml.SetUpdateVersion(version.Version.String())
|
||||
f.Qml.SetUpdateLandingPage(version.LandingPage)
|
||||
f.Qml.SetUpdateReleaseNotesLink(version.ReleaseNotesPage)
|
||||
f.updateInfo = version
|
||||
}
|
||||
|
||||
func (f *FrontendQt) NotifySilentUpdateInstalled() {
|
||||
f.Qml.NotifySilentUpdateRestartNeeded()
|
||||
}
|
||||
@ -428,6 +432,8 @@ func (f *FrontendQt) checkForUpdates() {
|
||||
return
|
||||
}
|
||||
|
||||
f.SetVersion(version)
|
||||
|
||||
if !f.updater.IsUpdateApplicable(version) {
|
||||
logrus.Debug("No need to update")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user