From f83c077a7e289f4f2a8175e6bb48bf86e11c5c17 Mon Sep 17 00:00:00 2001 From: prculley Date: Fri, 26 Jan 2018 14:30:41 -0600 Subject: [PATCH] Fix view buttons order keeps changing on different startups Fixes #10391 --- gramps/gen/plug/_pluginreg.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gramps/gen/plug/_pluginreg.py b/gramps/gen/plug/_pluginreg.py index 5caa63517..e637e7ea8 100644 --- a/gramps/gen/plug/_pluginreg.py +++ b/gramps/gen/plug/_pluginreg.py @@ -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]