Closed jfbourdon closed 1 year ago
Good shot! I used to have the "Show experimental plugins" checkbox ticked, what triggered the Plugins.reload()
, even without opening the Manager window and with checking for updates at startup disabled:
https://github.com/qgis/QGIS/blob/master/src/app/pluginmanager/qgspluginmanager.cpp#L1628
Currently, no plugin icons are shown in the selection menu of the configurator at startup. This happens because the call
plugin_installer.plugins.all()
returns an empty dict by default unless the Plugin Manager has been opened before.https://github.com/borysiasty/plugin_reloader/blob/6c82e431404c3fe4d54b0d80f1c310507c01cd04/reloader_plugin.py#L122
There is probably a better way to do it, but by calling
plugin_installer.plugins.rebuild()
when the configurator is opened, the dict is filled and the icons are thus properly shown.I also added the same call when the Reload button is pressed in order to avoid a crash if an extra command is used because of line 73. https://github.com/borysiasty/plugin_reloader/blob/6c82e431404c3fe4d54b0d80f1c310507c01cd04/reloader_plugin.py#L71-L73