mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix(navigationpane): check for unbranded application name when removing registry entries.
Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
parent
cd8cf2635b
commit
abe58a6640
@ -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);
|
||||
|
||||
@ -31,6 +31,7 @@ private:
|
||||
FolderMan *_folderMan;
|
||||
bool _showInExplorerNavigationPane;
|
||||
QTimer _updateCloudStorageRegistryTimer;
|
||||
static constexpr char unbrandedApplicationName[] = "Nextcloud";
|
||||
};
|
||||
|
||||
} // namespace OCC
|
||||
|
||||
Loading…
Reference in New Issue
Block a user