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>2023-01-06 19:34:10 +0000
commit71c7770823fe4c6c26debbb05bcb60b3eca08f33 (patch)
tree8b8d6fa747a660c9f1404c513de99771932e72c0
parenta720b1e6ff19c73c48a6ed4a16681c80c1d71fc0 (diff)
downloadnautilus-71c7770823fe4c6c26debbb05bcb60b3eca08f33.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>