Blame SOURCES/0001-animation-fix-unintentional-loop-while-polkit-dialog.patch

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