Added a refresh call to the hide-toolbar so that it gets updated if needed. Makes the blank-to-theme button visible in the toolbar.

This commit is contained in:
Tomas Groth 2014-12-02 11:07:03 +00:00
parent d267144ea4
commit 767e3d91f2
1 changed files with 3 additions and 0 deletions

View File

@ -618,6 +618,9 @@ class SlideController(DisplayController, RegistryProperties):
elif width < used_space - HIDE_MENU_THRESHOLD and not self.hide_menu.isVisible():
self.set_blank_menu(False)
self.toolbar.set_widget_visible(NARROW_MENU)
# Fallback to the standard blank toolbar if the hide_menu is not visible.
elif not self.hide_menu.isVisible():
self.set_blank_menu()
def set_blank_menu(self, visible=True):
"""