Skip to content

Commit 3df2dc5

Browse files
committed
Merge #403 [stable-4.0] [master] 2352-Windows_Related_Changes
2 parents 5f38454 + 69c2d0b commit 3df2dc5

3 files changed

Lines changed: 17 additions & 5 deletions

File tree

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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#endif
3636

3737
#include <array>
38+
#include <memory>
3839
#include <QBitArray>
3940
#include <QUrl>
4041
#include <QMetaMethod>
@@ -564,11 +565,26 @@ void SocketApi::processEncryptRequest(const QString &localFile)
564565
);
565566
Q_UNUSED(ret)
566567
} else {
568+
// NMC customization
569+
auto messageBox = std::make_unique<QMessageBox>();
570+
messageBox->setAttribute(Qt::WA_DeleteOnClose);
571+
messageBox->setWindowTitle(tr("Folder encrypted successfully"));
572+
messageBox->setText(tr("The following folder was encrypted successfully: \"%1\"").arg(fileData.folderRelativePath));
573+
574+
const QIcon avatarIcon = QIcon::fromTheme("iconPath", QIcon(":/client/theme/lock.svg"));
575+
QPixmap pixmap = avatarIcon.pixmap(QSize(24, 24));
576+
messageBox->setIconPixmap(pixmap);
577+
578+
// Set default button (prevents empty UI)
579+
messageBox->addButton(QMessageBox::Ok);
580+
messageBox->show();
581+
/*
567582
const int ret = QMessageBox::information(nullptr,
568583
tr("Folder encrypted successfully"),
569584
tr("The following folder was encrypted successfully: \"%1\"")
570585
.arg(fileData.folderRelativePath));
571586
Q_UNUSED(ret)
587+
*/
572588
}
573589
});
574590
job->setProperty(encryptJobPropertyFolder, QVariant::fromValue(folder));

0 commit comments

Comments
 (0)