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)
|
self.merge_ids.append(mergeid)
|
||||||
|
|
||||||
# Call the view_changed method for the active sidebar
|
# Call the view_changed method for the active sidebar
|
||||||
sidebar = self.pages[self.notebook.get_current_page()][1]
|
try:
|
||||||
|
sidebar = self.pages[self.notebook.get_current_page()][1]
|
||||||
|
except IndexError:
|
||||||
|
return
|
||||||
sidebar.view_changed(cat_num, view_num)
|
sidebar.view_changed(cat_num, view_num)
|
||||||
|
|
||||||
def cb_view_clicked(self, radioaction, current, cat_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,
|
gramplet = make_requested_gramplet(TabGramplet, self, all_opts,
|
||||||
self.dbstate, self.uistate)
|
self.dbstate, self.uistate)
|
||||||
if not gramplet:
|
if not gramplet:
|
||||||
LOG.warning("Problem creating ", gname)
|
LOG.warning("Problem creating '%s'", gname)
|
||||||
return
|
return
|
||||||
|
|
||||||
page_num = self.__add_tab(gramplet)
|
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.
|
Make a GUI gramplet given its name.
|
||||||
"""
|
"""
|
||||||
|
if opts == None:
|
||||||
|
return None
|
||||||
|
|
||||||
if "name" in opts:
|
if "name" in opts:
|
||||||
name = opts["name"]
|
name = opts["name"]
|
||||||
if name in AVAILABLE_GRAMPLETS():
|
if name in AVAILABLE_GRAMPLETS():
|
||||||
|
Loading…
Reference in New Issue
Block a user