forked from openlp/openlp
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:
parent
d267144ea4
commit
767e3d91f2
@ -618,6 +618,9 @@ class SlideController(DisplayController, RegistryProperties):
|
|||||||
elif width < used_space - HIDE_MENU_THRESHOLD and not self.hide_menu.isVisible():
|
elif width < used_space - HIDE_MENU_THRESHOLD and not self.hide_menu.isVisible():
|
||||||
self.set_blank_menu(False)
|
self.set_blank_menu(False)
|
||||||
self.toolbar.set_widget_visible(NARROW_MENU)
|
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):
|
def set_blank_menu(self, visible=True):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user