fix(navigationpane): check for unbranded application name when removing registry entries.

Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
Camila Ayres 2025-06-26 11:44:12 +02:00
parent cd8cf2635b
commit abe58a6640
No known key found for this signature in database
GPG Key ID: 7A4A6121E88E2AD4
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -31,6 +31,7 @@ private:
FolderMan *_folderMan;
bool _showInExplorerNavigationPane;
QTimer _updateCloudStorageRegistryTimer;
static constexpr char unbrandedApplicationName[] = "Nextcloud";
};
} // namespace OCC