7572: Do not hide 'categorysidebar' from Plugins Manager, do not try to restore hidden gramplets, typo on grampletbar (LOG.warning)
This commit is contained in:
parent
20a17bed89
commit
0af1c0bf41
@ -237,7 +237,10 @@ class Navigator(object):
|
||||
self.merge_ids.append(mergeid)
|
||||
|
||||
# Call the view_changed method for the active sidebar
|
||||
try:
|
||||
sidebar = self.pages[self.notebook.get_current_page()][1]
|
||||
except IndexError:
|
||||
return
|
||||
sidebar.view_changed(cat_num, view_num)
|
||||
|
||||
def cb_view_clicked(self, radioaction, current, cat_num):
|
||||
|
@ -291,7 +291,7 @@ class GrampletBar(Gtk.Notebook):
|
||||
gramplet = make_requested_gramplet(TabGramplet, self, all_opts,
|
||||
self.dbstate, self.uistate)
|
||||
if not gramplet:
|
||||
LOG.warning("Problem creating ", gname)
|
||||
LOG.warning("Problem creating '%s'", gname)
|
||||
return
|
||||
|
||||
page_num = self.__add_tab(gramplet)
|
||||
|
@ -173,6 +173,9 @@ def make_requested_gramplet(gui_class, pane, opts, dbstate, uistate):
|
||||
"""
|
||||
Make a GUI gramplet given its name.
|
||||
"""
|
||||
if opts == None:
|
||||
return None
|
||||
|
||||
if "name" in opts:
|
||||
name = opts["name"]
|
||||
if name in AVAILABLE_GRAMPLETS():
|
||||
|
Loading…
Reference in New Issue
Block a user