OwncloudWizard: Mark vfs as tech preview instead of experimental
authorHannah von Reth <hannah.vonreth@owncloud.com>
Thu, 15 Aug 2019 11:58:25 +0000 (13:58 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:57 +0000 (10:58 +0100)
src/gui/folderwizard.cpp
src/gui/wizard/owncloudwizard.cpp

index ab109316ed1fe4f957f0b3d91f452000ba3f56f1..4fdb605fc4f00cb916255b869ffd6b48afa823e7 100644 (file)
@@ -492,7 +492,8 @@ FolderWizardSelectiveSync::FolderWizardSelectiveSync(const AccountPtr &account)
     layout->addWidget(_selectiveSync);
 
     if (Theme::instance()->showVirtualFilesOption() && bestAvailableVfsMode() != Vfs::Off) {
-        _virtualFilesCheckBox = new QCheckBox(tr("Use virtual files instead of downloading content immediately (experimental)"));
+        _virtualFilesCheckBox = new QCheckBox(tr("Use virtual files instead of downloading content immediately %1").arg(
+                                                  bestAvailableVfsMode() == Vfs::WindowsCfApi ? tr("(tech preview)") : tr("(experimental)")));
         connect(_virtualFilesCheckBox, &QCheckBox::clicked, this, &FolderWizardSelectiveSync::virtualFilesCheckboxClicked);
         connect(_virtualFilesCheckBox, &QCheckBox::stateChanged, this, [this](int state) {
             _selectiveSync->setEnabled(state == Qt::Unchecked);
index f38e28372e96db481b5c242b6d7d654848b220f4..8e53e8c19901968007cb40f26d1b30b46ba62b79 100644 (file)
@@ -332,27 +332,24 @@ void OwncloudWizard::bringToTop()
 
 void OwncloudWizard::askExperimentalVirtualFilesFeature(const std::function<void(bool enable)> &callback)
 {
-    auto bestVfsMode = bestAvailableVfsMode();
+    const auto bestVfsMode = bestAvailableVfsMode();
     QMessageBox *msgBox = nullptr;
     if (bestVfsMode == Vfs::WindowsCfApi) {
         msgBox = new QMessageBox(
             QMessageBox::Warning,
-            tr("Enable experimental feature?"),
+            tr("Enable technical preview feature?"),
             tr("When the \"virtual files\" mode is enabled no files will be downloaded initially. "
-               "Instead a placeholder file will be created for each file that exists on the server. "
+               "Instead a virtual file will be created for each file that exists on the server. "
                "When a file is opened its contents will be downloaded automatically. "
-               "Alternatively files can be downloaded manually by using their context menu."
+               "Alternatively, files can be downloaded manually by using their context menu."
                "\n\n"
                "The virtual files mode is mutually exclusive with selective sync. "
                "Currently unselected folders will be translated to online-only folders "
-               "and your selective sync settings will be reset."
-               "\n\n"
-               "Switching to this mode will abort any currently running synchronization."
-               "\n\n"
-               "This is a new, experimental mode. If you decide to use it, please report any "
-               "issues that come up."));
+               "and your selective sync settings will be reset."));
+        msgBox->addButton(tr("Enable virtual files"), QMessageBox::AcceptRole);
+        msgBox->addButton(tr("Continue to use selective sync"), QMessageBox::RejectRole);
     } else {
-        ASSERT(bestVfsMode == Vfs::WithSuffix);
+        ASSERT(bestVfsMode == Vfs::WithSuffix)
         msgBox = new QMessageBox(
             QMessageBox::Warning,
             tr("Enable experimental feature?"),
@@ -369,9 +366,9 @@ void OwncloudWizard::askExperimentalVirtualFilesFeature(const std::function<void
                "This is a new, experimental mode. If you decide to use it, please report any "
                "issues that come up.")
                 .arg(APPLICATION_DOTVIRTUALFILE_SUFFIX));
+        msgBox->addButton(tr("Enable experimental placeholder mode"), QMessageBox::AcceptRole);
+        msgBox->addButton(tr("Stay safe"), QMessageBox::RejectRole);
     }
-    msgBox->addButton(tr("Enable experimental mode"), QMessageBox::AcceptRole);
-    msgBox->addButton(tr("Stay safe"), QMessageBox::RejectRole);
     connect(msgBox, &QMessageBox::finished, msgBox, [callback, msgBox](int result) {
         callback(result == QMessageBox::AcceptRole);
         msgBox->deleteLater();