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



commit e886bc8588f7b26bf9e02e1592e5e335f15a1b53
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.

 src/application.js |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index bc2603d..d99b4ab 100644
--- a/src/application.js
+++ b/src/application.js
@@ -205,14 +205,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]