[gnome-music/wip/mschraal/fix-art-lookup-stalls: 2/2] storeart: Signal when a the art is already stored




commit e2f205620aca5c0f420d785fcc581a8209f1e5fb
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Apr 24 00:51:12 2022 +0200

    storeart: Signal when a the art is already stored
    
    Signal to not block the async queue.

 gnomemusic/storeart.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gnomemusic/storeart.py b/gnomemusic/storeart.py
index 60d91809e..fe292f69f 100644
--- a/gnomemusic/storeart.py
+++ b/gnomemusic/storeart.py
@@ -138,6 +138,7 @@ class StoreArt(GObject.Object):
         except GLib.Error as error:
             # File already exists.
             self._log.info(f"Error: {error.domain}, {error.message}")
+            self.emit("finished")
         else:
             pixbuf.save_to_streamv_async(
                 output_stream, "jpeg", None, None, None,


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