[gnome-music/wip/mschraal/art-fixes-regressions: 4/5] storeart: Fix regression
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/art-fixes-regressions: 4/5] storeart: Fix regression
- Date: Tue, 7 Sep 2021 00:44:35 +0000 (UTC)
commit b60fcb442b96eb8a5eb77a0e953c6119aae79de0
Author: Marinus Schraal <mschraal gnome org>
Date: Tue Sep 7 02:12:00 2021 +0200
storeart: Fix regression
The changes in b55a50c18b omitted one piece of the puzzle, it never set
the actual thumbnail uri on the coreobject. Resulting in no art shown
after it was initially downloaded.
Revive the coreobject thumbnail setter.
gnomemusic/storeart.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/storeart.py b/gnomemusic/storeart.py
index 75dd47eaf..c24508adb 100644
--- a/gnomemusic/storeart.py
+++ b/gnomemusic/storeart.py
@@ -155,8 +155,9 @@ class StoreArt(GObject.Object):
except GLib.Error as error:
self._log.warning(f"Error: {error.domain}, {error.message}")
else:
- self.emit("finished")
+ self._coreobject.props.thumbnail = self._file.get_uri()
finally:
+ self.emit("finished")
output_stream.close_async(
GLib.PRIORITY_LOW, None, self._stream_closed)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]