mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-06 14:34:09 +02:00
Vfs plugins: Available plugins must load
A plugin that can't be loaded due to dependency issues should not be considered as available.
This commit is contained in:
parent
fd410a5a84
commit
bdfda460e6
@ -107,6 +107,13 @@ bool OCC::isVfsPluginAvailable(Vfs::Mode mode)
|
||||
return false;
|
||||
}
|
||||
|
||||
// Attempting to load the plugin is essential as it could have dependencies that
|
||||
// can't be resolved and thus not be available after all.
|
||||
if (!loader.load()) {
|
||||
qCWarning(lcPlugin) << "Plugin failed to load:" << loader.errorString();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user