mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-04 08:18:34 +00:00
feat: default update channel
This commit is contained in:
@ -66,10 +66,10 @@ func New(
|
||||
curVer *semver.Version,
|
||||
updateURLName, platform string,
|
||||
) *Updater {
|
||||
// If there's some unexpected value in the preferences, we force it back onto the stable channel.
|
||||
// If there's some unexpected value in the preferences, we force it back onto the default channel.
|
||||
// This prevents users from screwing up silent updates by modifying their prefs.json file.
|
||||
if channel := UpdateChannel(s.Get(settings.UpdateChannelKey)); !(channel == StableChannel || channel == EarlyChannel) {
|
||||
s.Set(settings.UpdateChannelKey, string(StableChannel))
|
||||
s.Set(settings.UpdateChannelKey, string(DefaultUpdateChannel))
|
||||
}
|
||||
|
||||
return &Updater{
|
||||
|
||||
Reference in New Issue
Block a user