mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
GODT-976 Exclude updates from clearing cache and clear cache, including updates, while switching early access off
This commit is contained in:
@ -125,6 +125,10 @@ func (u *Updater) IsUpdateApplicable(version VersionInfo) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (u *Updater) IsDowngrade(version VersionInfo) bool {
|
||||
return version.Version.LessThan(u.curVer)
|
||||
}
|
||||
|
||||
func (u *Updater) CanInstall(version VersionInfo) bool {
|
||||
if version.MinAuto == nil {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user