[gnome-games] collection-box: Don't hide view switcher when not folded
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] collection-box: Don't hide view switcher when not folded
- Date: Mon, 19 Aug 2019 16:37:31 +0000 (UTC)
commit f7f50813b5071755d90bb05756c179b7375ec829
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Mon Aug 19 21:20:41 2019 +0500
collection-box: Don't hide view switcher when not folded
At some point we introduced a state where the window is narrow enough not
to show view switcher in headerbar, but still not narrow enough for the
platforms leaflet to fold. In this case, we should always show the bottom
view switcher bar.
src/ui/collection-box.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/ui/collection-box.vala b/src/ui/collection-box.vala
index 06678f0c..77b296db 100644
--- a/src/ui/collection-box.vala
+++ b/src/ui/collection-box.vala
@@ -185,6 +185,7 @@ private class Games.CollectionBox : Gtk.Box {
}
private void update_bottom_bar () {
- view_switcher_bar.reveal = adaptive_state.is_showing_bottom_bar &&
!adaptive_state.is_subview_open;
+ view_switcher_bar.reveal = adaptive_state.is_showing_bottom_bar &&
+ (!adaptive_state.is_folded || !adaptive_state.is_subview_open);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]