summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2022-12-04 19:10:48 +0000
committerAntónio Fernandes <antoniof@gnome.org>2022-12-23 18:29:22 +0000
commitc390e74cba61f1ed7da280ecb150ca2004006c69 (patch)
treecb6dcaa4b76cc981b22c05b2d06429aee799a0a8
parent16e3e6ddd362b0e18d35601f72d9b71911a683fe (diff)
downloadnautilus-c390e74cba61f1ed7da280ecb150ca2004006c69.tar.gz
window: Allow swipe to hide sidebar only when folded
When not folded, there is not visible nor invisible way to restore the sidebar, so it shouldn't be allowed to be closed by touch gesture. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2536
-rw-r--r--src/resources/ui/nautilus-window.ui1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/ui/nautilus-window.ui b/src/resources/ui/nautilus-window.ui
index 6c7083c82..d8db7f7cc 100644
--- a/src/resources/ui/nautilus-window.ui
+++ b/src/resources/ui/nautilus-window.ui
@@ -43,6 +43,7 @@
</child>
<child>
<object class="AdwFlap" id="content_flap">
+ <property name="swipe-to-close" bind-source="content_flap" bind-property="folded" bind-flags="sync-create"/>
<child type="flap">
<object class="NautilusGtkPlacesSidebar" id="places_sidebar">
<property name="vexpand">True</property>