From abe58a6640f87edb5cbb1fa5413ae49e0407e243 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Thu, 26 Jun 2025 11:44:12 +0200 Subject: [PATCH] fix(navigationpane): check for unbranded application name when removing registry entries. Signed-off-by: Camila Ayres --- src/gui/navigationpanehelper.cpp | 2 +- src/gui/navigationpanehelper.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/navigationpanehelper.cpp b/src/gui/navigationpanehelper.cpp index e87fd028ab..578f710227 100644 --- a/src/gui/navigationpanehelper.cpp +++ b/src/gui/navigationpanehelper.cpp @@ -67,7 +67,7 @@ void NavigationPaneHelper::updateCloudStorageRegistry() [&entriesToRemove](HKEY key, const QString &subKey) { const auto appName = Utility::registryGetKeyValue(key, subKey, QStringLiteral("ApplicationName")); qCDebug(lcNavPane) << "Searching for user with subKey:" << subKey; - if (appName.toString() == QLatin1String(APPLICATION_NAME)) { + if (appName.toString() == QLatin1String(APPLICATION_NAME) || appName.toString() == unbrandedApplicationName) { QUuid clsid{ subKey }; Q_ASSERT(!clsid.isNull()); entriesToRemove.append(clsid); diff --git a/src/gui/navigationpanehelper.h b/src/gui/navigationpanehelper.h index 59260f908f..bd55a6ad0e 100644 --- a/src/gui/navigationpanehelper.h +++ b/src/gui/navigationpanehelper.h @@ -31,6 +31,7 @@ private: FolderMan *_folderMan; bool _showInExplorerNavigationPane; QTimer _updateCloudStorageRegistryTimer; + static constexpr char unbrandedApplicationName[] = "Nextcloud"; }; } // namespace OCC