Default to canary channel if running canary build

This commit is contained in:
topjohnwu
2019-03-11 07:38:31 -04:00
parent a1827fd680
commit 7e3ff03109
3 changed files with 8 additions and 2 deletions

View File

@@ -315,7 +315,8 @@ public class Config {
defs.put(Key.SU_REQUEST_TIMEOUT, 10);
defs.put(Key.SU_AUTO_RESPONSE, Value.SU_PROMPT);
defs.put(Key.SU_NOTIFICATION, Value.NOTIFICATION_TOAST);
defs.put(Key.UPDATE_CHANNEL, Value.STABLE_CHANNEL);
defs.put(Key.UPDATE_CHANNEL, Utils.isCanary() ?
Value.CANARY_DEBUG_CHANNEL : Value.STABLE_CHANNEL);
// prefs bool
defs.put(Key.CHECK_UPDATES, true);