[gnome-shell/ewlsh/background-tweak] background: Don't override synchronous load() with an async version




commit 306c969fe6ff8dee8dd894ac3eefeab58776ef84
Author: Evan Welsh <contact evanwelsh com>
Date:   Sat Oct 30 15:11:10 2021 -0700

    background: Don't override synchronous load() with an async version
    
    Instead, override the asynchronous version to avoid conflicting with
    the parent signature.

 js/ui/background.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/background.js b/js/ui/background.js
index 1f7c5e5720..2af03afb94 100644
--- a/js/ui/background.js
+++ b/js/ui/background.js
@@ -177,7 +177,7 @@ var BackgroundCache = class BackgroundCache {
 
         animation = new Animation({ file: params.file });
 
-        animation.load(() => {
+        animation.load_async(null, () => {
             this._animations[params.settingsSchema] = animation;
 
             if (params.onLoaded) {
@@ -634,8 +634,8 @@ class Animation extends GnomeDesktop.BGSlideShow {
         this.loaded = false;
     }
 
-    load(callback) {
-        this.load_async(null, () => {
+    load_async(cancellable, callback) {
+        super.load_async(cancellable, () => {
             this.loaded = true;
             if (callback)
                 callback();


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