Commit 50a4534b authored by Falk Alexander Seidl's avatar Falk Alexander Seidl

Avoid unnecessary transitions

The revealer to show and hide the buttons when switching the view from/to mobile or desktop now is only used when needed.
parent ca74d534
......@@ -295,7 +295,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="action_name">app.settings</property>
<property name="text" translatable="yes">Preferences</property>
<property name="text" translatable="yes">Settings</property>
</object>
<packing>
<property name="expand">False</property>
......
......@@ -241,6 +241,10 @@ class UnlockedDatabase:
self.builder.get_object("selection_button_revealer").set_reveal_child(False)
else:
self.builder.get_object("pathbar_button_selection_revealer").set_reveal_child(False)
if self.window.mobile_width is True:
return
self.builder.get_object("selection_button_revealer").set_reveal_child(True)
# Selection headerbar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment