Fix view buttons order keeps changing on different startups
Fixes #10391
This commit is contained in:
parent
323d775541
commit
f83c077a7e
@ -1245,8 +1245,7 @@ class PluginRegister:
|
||||
"""
|
||||
Return a list of :class:`PluginData` that are of type ptype
|
||||
"""
|
||||
return [self.get_plugin(id) for id in
|
||||
set([x.id for x in self.__plugindata if x.ptype == ptype])]
|
||||
return [x for x in self.__plugindata if x.ptype == ptype]
|
||||
|
||||
def report_plugins(self, gui=True):
|
||||
"""
|
||||
@ -1355,6 +1354,4 @@ class PluginRegister:
|
||||
"""
|
||||
Return a list of :class:`PluginData` that have load_on_reg == True
|
||||
"""
|
||||
return [self.get_plugin(id) for id in
|
||||
set([x.id for x in self.__plugindata
|
||||
if x.load_on_reg == True])]
|
||||
return [x for x in self.__plugindata if x.load_on_reg == True]
|
||||
|
Loading…
Reference in New Issue
Block a user