Blame SOURCES/0001-animation-fix-unintentional-loop-while-polkit-dialog.patch
|
|
441107 |
From 34e6bbeebef37ae688ca0527bde03fa26b143bb7 Mon Sep 17 00:00:00 2001
|
|
|
441107 |
From: Ray Strode <rstrode@redhat.com>
|
|
|
441107 |
Date: Thu, 27 Jun 2019 14:27:34 -0400
|
|
|
441107 |
Subject: [PATCH] animation: fix unintentional loop while polkit dialog is
|
|
|
441107 |
active
|
|
|
441107 |
|
|
|
441107 |
The polkit password dialog has a spinner that gets displayed
|
|
|
441107 |
while the users password is being verified.
|
|
|
441107 |
|
|
|
441107 |
Unfortunately, the spinner stop method unintentionally calls
|
|
|
441107 |
back into itself after the stop fade out animation is complete.
|
|
|
441107 |
The stop method is called at startup, so the looping begins as
|
|
|
441107 |
soon as the dialog is visible and continues until the dialog is
|
|
|
441107 |
dismissed.
|
|
|
441107 |
|
|
|
441107 |
This commit fixes the loop by having the stop method cease
|
|
|
441107 |
calling itself, and instead having it call the stop method on the
|
|
|
441107 |
superclass.
|
|
|
441107 |
|
|
|
441107 |
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/602
|
|
|
441107 |
---
|
|
|
441107 |
js/ui/animation.js | 2 +-
|
|
|
441107 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
441107 |
|
|
|
441107 |
diff --git a/js/ui/animation.js b/js/ui/animation.js
|
|
|
441107 |
index c21b22565..58d7f4018 100644
|
|
|
441107 |
--- a/js/ui/animation.js
|
|
|
441107 |
+++ b/js/ui/animation.js
|
|
|
441107 |
@@ -162,7 +162,7 @@ var Spinner = class extends AnimatedIcon {
|
|
|
441107 |
time: SPINNER_ANIMATION_TIME,
|
|
|
441107 |
transition: 'linear',
|
|
|
441107 |
onComplete: () => {
|
|
|
441107 |
- this.stop(false);
|
|
|
441107 |
+ super.stop();
|
|
|
441107 |
}
|
|
|
441107 |
});
|
|
|
441107 |
} else {
|
|
|
441107 |
--
|
|
|
441107 |
2.21.0
|
|
|
441107 |
|