Skip to content

Commit 7bd8316

Browse files
committed
chore: use deprecated attribute on updateChannelC()
1 parent 3df5520 commit 7bd8316

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/gui/updater/updater.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ namespace OCC {
3434

3535
Q_LOGGING_CATEGORY(lcUpdater, "gui.updater", QtInfoMsg)
3636

37+
[[deprecated("updateChannel is no longer supported. the key will be removed in 8.0")]]
38+
const QString updateChannelC() { return QStringLiteral("updateChannel"); }
39+
3740
QString updateChannel()
3841
{
3942
// remove deprecated updateChannel setting once we hit 8.0
4043
auto settings = ConfigFile::makeQSettings();
41-
QString updateChannelKey = "updateChannel";
44+
QString updateChannelKey = updateChannelC();
4245
/*
4346
if (settings.contains(updateChannelKey)) {
4447
settings.remove(updateChannelKey);

src/libsync/configfile.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ 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"); }
6462
const QString uiLanguageC() { return QStringLiteral("uiLanguage"); }
6563
const QString geometryC() { return QStringLiteral("geometry"); }
6664
const QString timeoutC() { return QStringLiteral("timeout"); }

0 commit comments

Comments
 (0)