Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Müller <fmueller@owncloud.com>2022-10-10 16:14:56 +0300
committerHannah von Reth <vonreth@kde.org>2022-10-10 17:38:33 +0300
commit09c1b1f007e337c1674f8b198cad836f15a61aa5 (patch)
tree967b403788eb3a843527f7c89b2c8a49660241e4
parentef7315d646120bd12d82b4a3232c5db825b26b82 (diff)
Hide VFS radio button when experimental features are disabled
-rw-r--r--src/gui/newwizard/pages/accountconfiguredwizardpage.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/newwizard/pages/accountconfiguredwizardpage.cpp b/src/gui/newwizard/pages/accountconfiguredwizardpage.cpp
index 25a9f73c7..089a7d22d 100644
--- a/src/gui/newwizard/pages/accountconfiguredwizardpage.cpp
+++ b/src/gui/newwizard/pages/accountconfiguredwizardpage.cpp
@@ -30,6 +30,11 @@ AccountConfiguredWizardPage::AccountConfiguredWizardPage(const QString &defaultS
_ui->useVfsRadioButton->setText(tr("Use &virtual files instead of downloading content immediately"));
if (vfsModeIsExperimental) {
_ui->useVfsRadioButton->setIcon(Utility::getCoreIcon(QStringLiteral("warning")));
+
+ // when a feature is experimental and experimental features are disabled globally, it should be hidden
+ if (!Theme::instance()->enableExperimentalFeatures()) {
+ _ui->useVfsRadioButton->hide();
+ }
}
// just adjusting the visibility should be sufficient for these branding options