Fix Explorer integration re-save (fixes issue #1807)

Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Michael Schuster 2020-03-01 03:39:24 +01:00
parent bf838bd336
commit f1dd312b2e
No known key found for this signature in database
GPG key ID: 00819E3BF4177B28

View file

@ -79,6 +79,8 @@ void NavigationPaneHelper::updateCloudStorageRegistry()
});
#endif
// Only save folder entries if the option is enabled.
if (_showInExplorerNavigationPane) {
// Then re-save every folder that has a valid navigationPaneClsid to the registry.
// We currently don't distinguish between new and existing CLSIDs, if it's there we just
// save over it. We at least need to update the tile in case we are suddently using multiple accounts.
@ -150,6 +152,7 @@ void NavigationPaneHelper::updateCloudStorageRegistry()
#endif
}
}
}
// Then remove anything that isn't in our folder list anymore.
foreach (auto &clsid, entriesToRemove) {