diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index f246a7026495e..2ebfe132ef9fc 100644 --- a/src/gui/accountsettings.cpp +++ b/src/gui/accountsettings.cpp @@ -714,10 +714,6 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos) ac = availabilityMenu->addAction(Utility::vfsFreeSpaceActionText()); connect(ac, &QAction::triggered, this, [this]() { slotSetCurrentFolderAvailability(PinState::OnlineOnly); }); - - ac = menu->addAction(tr("Disable virtual file support …")); - connect(ac, &QAction::triggered, this, &AccountSettings::slotDisableVfsCurrentFolder); - ac->setDisabled(Theme::instance()->enforceVirtualFilesSyncFolder()); } if (const auto mode = bestAvailableVfsMode(); diff --git a/src/gui/navigationpanehelper.cpp b/src/gui/navigationpanehelper.cpp index 2aab0ec22a19e..444d1273f6aac 100644 --- a/src/gui/navigationpanehelper.cpp +++ b/src/gui/navigationpanehelper.cpp @@ -93,7 +93,7 @@ void NavigationPaneHelper::updateCloudStorageRegistry() const QString clsidPathWow64 = QString() % R"(Software\Classes\Wow6432Node\CLSID\)" % clsidStr; const QString namespacePath = QString() % R"(Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\)" % clsidStr; const auto title = folder->sidebarDisplayName(); - qCDebug(lcNavPane) << "Folder" << folder->cleanPath() << "will use shortcutname" << title; + // qCDebug(lcNavPane) << "Folder" << folder->cleanPath() << "will use shortcutname" << title; const auto iconPath = QDir::toNativeSeparators(qApp->applicationFilePath()); const auto targetFolderPath = QDir::toNativeSeparators(folder->cleanPath()); diff --git a/src/gui/socketapi/socketapi.cpp b/src/gui/socketapi/socketapi.cpp index 68b717498f960..501aa83aabedf 100644 --- a/src/gui/socketapi/socketapi.cpp +++ b/src/gui/socketapi/socketapi.cpp @@ -35,6 +35,7 @@ #endif #include +#include #include #include #include @@ -565,10 +566,25 @@ void SocketApi::processEncryptRequest(const QString &localFile) ); Q_UNUSED(ret) } else { + // NMC customization + auto messageBox = std::make_unique(); + messageBox->setAttribute(Qt::WA_DeleteOnClose); + messageBox->setWindowTitle(tr("Folder encrypted successfully")); + messageBox->setText(tr("The following folder was encrypted successfully: \"%1\"").arg(fileData.folderRelativePath)); + + const QIcon avatarIcon = QIcon::fromTheme("iconPath", QIcon(":/client/theme/lock.svg")); + QPixmap pixmap = avatarIcon.pixmap(QSize(24, 24)); + messageBox->setIconPixmap(pixmap); + + // Set default button (prevents empty UI) + messageBox->addButton(QMessageBox::Ok); + messageBox->show(); +/* const int ret = QMessageBox::information(nullptr, tr("Folder encrypted successfully").arg(fileData.folderRelativePath), tr("The following folder was encrypted successfully: \"%1\"").arg(fileData.folderRelativePath)); Q_UNUSED(ret) +*/ } }); job->setProperty(encryptJobPropertyFolder, QVariant::fromValue(folder));