45 lines
1.7 KiB
Diff
45 lines
1.7 KiB
Diff
From b0d6742bcdba59991fbf0b31c6c670db7939cfa7 Mon Sep 17 00:00:00 2001
|
|
From: rpm-build <rpm-build>
|
|
Date: Tue, 30 Mar 2021 15:35:52 +0800
|
|
Subject: [PATCH] cleanup: Port GObject classes to JS6 classes
|
|
|
|
GJS added API for defining GObject classes with ES6 class syntax
|
|
last cycle, use it to port the remaining Lang.Class classes to
|
|
the new syntax.
|
|
|
|
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361
|
|
|
|
---
|
|
js/gdm/loginDialog.js | 9 ++++-----
|
|
1 file changed, 4 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
|
|
index 29954f7..2f89140 100644
|
|
--- a/js/gdm/loginDialog.js
|
|
+++ b/js/gdm/loginDialog.js
|
|
@@ -931,17 +931,16 @@ var LoginDialog = new Lang.Class({
|
|
_loginScreenSessionActivated() {
|
|
if (this.actor.opacity == 255 && this._authPrompt.verificationStatus == AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
|
|
return;
|
|
+ if (this._authPrompt.verificationStatus !== AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
|
|
+ this._authPrompt.reset();
|
|
|
|
this._bindOpacity();
|
|
Tweener.addTween(this.actor,
|
|
{ opacity: 255,
|
|
time: _FADE_ANIMATION_TIME,
|
|
transition: 'easeOutQuad',
|
|
- onComplete: () => {
|
|
- if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.NOT_VERIFYING)
|
|
- this._authPrompt.reset();
|
|
- this._unbindOpacity();
|
|
- } });
|
|
+ onComplete: () => this._unbindOpacity(),
|
|
+ });
|
|
},
|
|
|
|
_gotGreeterSessionProxy(proxy) {
|
|
--
|
|
2.23.0
|
|
|