[gnome-games/wip/exalm/ui: 2/5] platforms-view: Close subview when switching out



commit 52539e31a846f336472ef6b185541523f0a6437c
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Thu May 30 15:01:44 2019 +0500

    platforms-view: Close subview when switching out
    
    Prevent a bug with view switcher bar being hidden in Games view.

 src/ui/platforms-view.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/ui/platforms-view.vala b/src/ui/platforms-view.vala
index cb72593f..02b9f5c7 100644
--- a/src/ui/platforms-view.vala
+++ b/src/ui/platforms-view.vala
@@ -62,8 +62,10 @@ private class Games.PlatformsView : Gtk.Bin {
 
                        _is_active = value;
 
-                       if (!_is_active)
+                       if (!_is_active) {
                                gamepad_browse.cancel_cursor_movement ();
+                               adaptive_state.is_subview_open = false;
+                       }
                }
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]