[polari] userList: Initialize notification label opacity



commit 6328d23e5009e051851aad235958ae05028d964c
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Mar 10 00:39:32 2017 +0100

    userList: Initialize notification label opacity
    
    The label should only be visible when :notifications-enabled is set.
    As we currently only update the opacity on property changes, and the
    property starts out as false, the initial opacity is wrong.

 src/userList.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/userList.js b/src/userList.js
index 8e6d306..ec00cb9 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -143,6 +143,7 @@ const UserDetails = new Lang.Class({
 
         this._updateButtonVisibility();
         this._detailsGrid.hide();
+        this._notificationLabel.opacity = this.notifications_enabled ? 1. : 0.;
     },
 
     get notifications_enabled() {


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