forked from Silverfish/proton-bridge
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