mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Avoid error when plugin loaded with QGIS_NO_OVERRIDE_IMPORT
This commit is contained in:
parent
3aa6a2e92f
commit
928fc556ec
@ -534,6 +534,10 @@ def unloadPlugin(packageName: str) -> bool:
|
||||
def _unloadPluginModules(packageName: str):
|
||||
""" unload plugin package with all its modules (files) """
|
||||
global _plugin_modules
|
||||
|
||||
if packageName not in _plugin_modules:
|
||||
return
|
||||
|
||||
mods = _plugin_modules[packageName]
|
||||
|
||||
for mod in mods:
|
||||
|
Loading…
x
Reference in New Issue
Block a user