mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
loginDialog: Don't call _loginScreenSessionActivated() when not required
We are calling _loginScreenSessionActivated() even in cases where this is not required. For example, there are cases where the Active property is already `true` and properties like `IdleHint`, `IdleSinceHint` and `IdleSinceHintMonotonic` change. In this cases _loginScreenSessionActivated() is called and will reset the authPrompt when not necessary. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2411>
This commit is contained in:
parent
a70e9c2876
commit
4871eba8bf
1 changed files with 3 additions and 2 deletions
|
|
@ -985,8 +985,9 @@ var LoginDialog = GObject.registerClass({
|
|||
async _getGreeterSessionProxy() {
|
||||
const loginManager = LoginManager.getLoginManager();
|
||||
this._greeterSessionProxy = await loginManager.getCurrentSessionProxy();
|
||||
this._greeterSessionProxy?.connectObject('g-properties-changed', () => {
|
||||
if (this._greeterSessionProxy.Active)
|
||||
this._greeterSessionProxy?.connectObject('g-properties-changed', (proxy, properties) => {
|
||||
const activeChanged = !!properties.lookup_value('Active', null);
|
||||
if (activeChanged && proxy.Active)
|
||||
this._loginScreenSessionActivated();
|
||||
}, this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue