From 0274cd912b9d6192391c38775953e1a7a592f725 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Mon, 3 Jun 2024 22:14:55 +0200 Subject: [PATCH] Only list enterprise for customers not running branded clients. Signed-off-by: Camila Ayres --- src/gui/generalsettings.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index 3c29f9c8a..939e349aa 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -391,6 +391,7 @@ void GeneralSettings::slotUpdateChannelChanged() return; } + const auto enterprise = _ui->updateChannel->count() > 3 ? "- enterprise: contains stable versions for customers.\n" : ""; auto msgBox = new QMessageBox( QMessageBox::Warning, tr("Changing update channel?"), @@ -398,8 +399,8 @@ void GeneralSettings::slotUpdateChannelChanged() "- stable: contains tested versions considered reliable\n" "- beta: contains versions with new features that may not be tested thoroughly\n" "- daily: contains versions created daily only for testing and development\n\n" - "- enterprise: contains stable versions for customers.\n\n" - "Downgrading versions is not possible immediately: changing from beta to stable means waiting for the new stable version."), + "%1\n" + "Downgrading versions is not possible immediately: changing from beta to stable means waiting for the new stable version.").arg(enterprise), QMessageBox::NoButton, this); const auto acceptButton = msgBox->addButton(tr("Change update channel"), QMessageBox::AcceptRole); -- 2.39.5