Skip to content

Commit 3df5520

Browse files
committed
fix: remove "updateChannel" from confg file upon 8.0 and until then force it to "ocis"
1 parent 4914082 commit 3df5520

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/gui/updater/updater.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,16 @@ Q_LOGGING_CATEGORY(lcUpdater, "gui.updater", QtInfoMsg)
3636

3737
QString updateChannel()
3838
{
39-
// remove deprecated updateChannel setting
39+
// remove deprecated updateChannel setting once we hit 8.0
4040
auto settings = ConfigFile::makeQSettings();
4141
QString updateChannelKey = "updateChannel";
42+
/*
4243
if (settings.contains(updateChannelKey)) {
4344
settings.remove(updateChannelKey);
4445
}
46+
*/
47+
// until then, migrate old setting if present
48+
settings.setValue(updateChannelKey, "ocis");
4549

4650
// By now only two channels are supported: ocis and beta-ocis
4751
const QString suffix = OCC::Version::suffix();

src/libsync/configfile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ const QString optionalDesktopNotificationsC()
5959
}
6060
const QString skipUpdateCheckC() { return QStringLiteral("skipUpdateCheck"); }
6161
const QString updateCheckIntervalC() { return QStringLiteral("updateCheckInterval"); }
62+
// deprecated - will be removed in 8.0
63+
// const QString updateChannelC() { return QStringLiteral("updateChannel"); }
6264
const QString uiLanguageC() { return QStringLiteral("uiLanguage"); }
6365
const QString geometryC() { return QStringLiteral("geometry"); }
6466
const QString timeoutC() { return QStringLiteral("timeout"); }

0 commit comments

Comments
 (0)