Only list enterprise for customers not running branded clients.
authorCamila Ayres <hello@camilasan.com>
Mon, 3 Jun 2024 20:14:55 +0000 (22:14 +0200)
committerCamila Ayres <hello@camilasan.com>
Thu, 4 Jul 2024 08:16:39 +0000 (10:16 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/generalsettings.cpp

index 3c29f9c8a61ad35aee52e8868b2054292c24fd48..939e349aa2346bef01b7bc137d3b8a7b9c7b0555 100644 (file)
@@ -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);