Skip to content

Commit

Permalink
Fix: mobile library switcher was not displayed if Cozy started with a…
Browse files Browse the repository at this point in the history
… narrow window
  • Loading branch information
geigi committed Aug 20, 2021
1 parent 410fd7e commit a5e1667
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cozy/ui/headerbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@ def _on_can_navigate_back_changed(self):

def _on_show_library_filter_changed(self):
self.category_toolbar.set_visible(self._headerbar_view_model.show_library_filter)
self._reveal_mobile_library_filter(self.category_toolbar.get_title_visible())

def _back_clicked(self, _):
self._headerbar_view_model.navigate_back()

def _on_title_visible_changed(self, widget, param):
visible = widget.get_property(param.name)
reveal_child = visible and self._headerbar_view_model.show_library_filter
self._reveal_mobile_library_filter(visible)

def _reveal_mobile_library_filter(self, reveal: bool):
reveal_child = reveal and self._headerbar_view_model.show_library_filter
self._library_mobile_revealer.set_reveal_child(reveal_child)

def _on_lock_ui_changed(self):
Expand Down

0 comments on commit a5e1667

Please sign in to comment.