🐛 Fix an issue with plugin sorting
If we just uninstalled a plugin there might not be a PluginInfo object. In that case assume the plugin is not bundled (not False = True)
This commit is contained in:
1 parent
db009e3ba2
commit
68410cb3d7
1 file changed
+1
-1
@@ -1491,7 +1491,7 @@ class PluginManager(object):
|
||||
sorting_value = None
|
||||
|
||||
plugin_info = self.get_plugin_info(impl[0], require_enabled=False)
|
||||
return sorting_value is None, sorting_value, not plugin_info.bundled, impl[0]
|
||||
return sorting_value is None, sorting_value, not plugin_info.bundled if plugin_info else True, impl[0]
|
||||
|
||||
return [impl[1] for impl in sorted(result, key=sort_func)]
|
||||
|
||||
|
||||
Reference in new issue
Block a user