mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 05:25:50 +03: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
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue