! Returns true if any plugin has errors even though it is enabled. Most useful to call after loadPlugins(). */
| 341 | Most useful to call after loadPlugins(). |
| 342 | */ |
| 343 | bool PluginManager::hasError() |
| 344 | { |
| 345 | foreach (PluginSpec *spec, plugins()) { |
| 346 | // only show errors on startup if plugin is enabled. |
| 347 | if (spec->hasError() && spec->isEnabledInSettings() && !spec->isDisabledIndirectly()) |
| 348 | return true; |
| 349 | } |
| 350 | return false; |
| 351 | } |
| 352 | |
| 353 | /*! |
| 354 | Shuts down and deletes all plugins. |
no outgoing calls
no test coverage detected