Fix view buttons order keeps changing on different startups

Fixes #10391
This commit is contained in:
prculley 2018-01-26 14:30:41 -06:00 committed by Nick Hall
parent 323d775541
commit f83c077a7e

View File

@ -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]