We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c942e3 commit 9290f99Copy full SHA for 9290f99
src/ui/window.rs
@@ -330,6 +330,17 @@ impl MainWindow {
330
.sync_create()
331
.bidirectional()
332
.build();
333
+
334
+ // close the split view if we're in "mobile layout" and the user has clicked on an element
335
+ imp.content_stack.connect_visible_child_notify(clone!(
336
+ #[weak]
337
+ imp,
338
+ move |_| {
339
+ if imp.split_view.is_collapsed() {
340
+ imp.split_view.set_show_sidebar(false);
341
+ }
342
343
+ ));
344
}
345
346
fn get_selected_page(&self) -> Option<Widget> {
0 commit comments