[gnome-shell/eos3.8: 166/255] payg: Make sure to initialize the users list after startup has completed



commit 315c9b320e2f7483ce3b26ee04798ab22d0b1b1f
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Thu Mar 22 18:56:37 2018 +0000

    payg: Make sure to initialize the users list after startup has completed
    
    This is not necessary upstream because the dialog has always going to be
    created before the startup process has completed, but in PAYG machines
    this is no longer true since the PAYG dialog will show up before than
    the login screen if the machine is locked.
    
    But in our case it's necessary to do an extra check and initialize the
    list of users explicitly if the startup process has already finished,
    otherwise an empty login screen will be shown after unlocking the machine.
    
    https://phabricator.endlessm.com/T21609

 js/gdm/loginDialog.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index b19f1c6628..5e391ac703 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -523,6 +523,10 @@ var LoginDialog = GObject.registerClass({
         // focus later
         this._startupCompleteId = Main.layoutManager.connect('startup-complete',
                                                              this._updateDisableUserList.bind(this));
+
+        // With PAYG machines this class can be created AFTER the startup process.
+        if (!Main.layoutManager.startingUp)
+            this._updateDisableUserList();
     }
 
     _getBannerAllocation(dialogBox) {


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