Skip to content

Commit de3b86c

Browse files
committed
Merge #403 [stable-4.0] [master] 2352-Windows_Related_Changes
2 parents 0185766 + c6d588d commit de3b86c

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

src/gui/accountsettings.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,10 +719,6 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)
719719

720720
ac = availabilityMenu->addAction(Utility::vfsFreeSpaceActionText());
721721
connect(ac, &QAction::triggered, this, [this]() { slotSetCurrentFolderAvailability(PinState::OnlineOnly); });
722-
723-
ac = menu->addAction(tr("Disable virtual file support …"));
724-
connect(ac, &QAction::triggered, this, &AccountSettings::slotDisableVfsCurrentFolder);
725-
ac->setDisabled(Theme::instance()->enforceVirtualFilesSyncFolder());
726722
}
727723

728724
if (const auto mode = bestAvailableVfsMode();

src/gui/navigationpanehelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void NavigationPaneHelper::updateCloudStorageRegistry()
9393
const QString clsidPathWow64 = QString() % R"(Software\Classes\Wow6432Node\CLSID\)" % clsidStr;
9494
const QString namespacePath = QString() % R"(Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\)" % clsidStr;
9595
const auto title = folder->sidebarDisplayName();
96-
qCDebug(lcNavPane) << "Folder" << folder->cleanPath() << "will use shortcutname" << title;
96+
// qCDebug(lcNavPane) << "Folder" << folder->cleanPath() << "will use shortcutname" << title;
9797

9898
const auto iconPath = QDir::toNativeSeparators(qApp->applicationFilePath());
9999
const auto targetFolderPath = QDir::toNativeSeparators(folder->cleanPath());

src/gui/socketapi/socketapi.cpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,26 @@ void SocketApi::processEncryptRequest(const QString &localFile)
564564
);
565565
Q_UNUSED(ret)
566566
} else {
567+
// NMC customization
568+
auto messageBox = std::make_unique<QMessageBox>();
569+
messageBox->setAttribute(Qt::WA_DeleteOnClose);
570+
messageBox->setWindowTitle(tr("Folder encrypted successfully"));
571+
messageBox->setText(tr("The following folder was encrypted successfully: \"%1\"").arg(fileData.folderRelativePath));
572+
573+
const QIcon avatarIcon = QIcon::fromTheme("iconPath", QIcon(":/client/theme/lock.svg"));
574+
QPixmap pixmap = avatarIcon.pixmap(QSize(24, 24));
575+
messageBox->setIconPixmap(pixmap);
576+
577+
// Set default button (prevents empty UI)
578+
messageBox->addButton(QMessageBox::Ok);
579+
messageBox->show();
580+
/*
567581
const int ret = QMessageBox::information(nullptr,
568582
tr("Folder encrypted successfully"),
569583
tr("The following folder was encrypted successfully: \"%1\"")
570584
.arg(fileData.folderRelativePath));
571585
Q_UNUSED(ret)
586+
*/
572587
}
573588
});
574589
job->setProperty(encryptJobPropertyFolder, QVariant::fromValue(folder));
@@ -1722,4 +1737,4 @@ void SocketApiJobV2::doFinish(const QJsonObject &obj) const
17221737

17231738
} // namespace OCC
17241739

1725-
#include "socketapi.moc"
1740+
#include "socketapi.moc"

0 commit comments

Comments
 (0)