[polari] Revert "app: Restore previous state when 'user-list' action is enabled"



commit 2820353bbfa613f49a831c72592e77c998c15d77
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 21 15:31:37 2014 +0100

    Revert "app: Restore previous state when 'user-list' action is enabled"
    
    With the move to a popover, the user list has become a lot more
    transient - in particular, the popover should never stay open
    across room changes, so there is no state to restore when coming
    from a room without user list (e.g. private chat).
    
    This reverts commit 21455581a05801e39923ad287630cf810e6ff91c.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727039

 src/application.js |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 56c5b05..b34c3a8 100644
--- a/src/application.js
+++ b/src/application.js
@@ -216,14 +216,8 @@ const Application = new Lang.Class({
                 this._updateUserListAction(action);
             }));
         action.connect('notify::enabled', function() {
-            if (action.enabled) {
-                if (action._previousState)
-                    action.change_state(GLib.Variant.new('b', true));
-                delete action._previousState;
-            } else {
-                action._previousState = action.state.get_boolean();
+            if (!action.enabled)
                 action.change_state(GLib.Variant.new('b', false));
-            }
         });
         this._updateUserListAction(action);
     },


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