summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/gui.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-04-01 19:54:11 +0200
committerRobert Honz <exislow+github@gmail.com>2024-04-01 19:54:11 +0200
commit1dcfd98a757be47cd38bcca8596fa8df623af182 (patch)
tree35f11a8a670b0df1c98299dabfc9b74e79a29580 /tidal_dl_ng/gui.py
parentf9dd50b46420076dceebf4adb269cf7a0f8906f6 (diff)
downloadtidal-dl-ng-1dcfd98a757be47cd38bcca8596fa8df623af182.tar.gz
✨ Include dafault album image in build.
Diffstat (limited to 'tidal_dl_ng/gui.py')
-rw-r--r--tidal_dl_ng/gui.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tidal_dl_ng/gui.py b/tidal_dl_ng/gui.py
index 7402ef4..10beb96 100644
--- a/tidal_dl_ng/gui.py
+++ b/tidal_dl_ng/gui.py
@@ -15,7 +15,7 @@ from tidal_dl_ng.helper.gui import (
set_results_media,
set_user_list_media,
)
-from tidal_dl_ng.helper.path import get_format_template
+from tidal_dl_ng.helper.path import get_format_template, resource_path
from tidal_dl_ng.helper.tidal import (
get_tidal_media_id,
get_tidal_media_type,
@@ -179,7 +179,10 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.statusbar.addPermanentWidget(pb)
def _init_info(self):
- self.l_pm_cover.setPixmap(QtGui.QPixmap("tidal_dl_ng/ui/default_album_image.png"))
+ path_image: str = resource_path("tidal_dl_ng/ui/default_album_image.png")
+
+ logger_gui.info(path_image)
+ self.l_pm_cover.setPixmap(QtGui.QPixmap(path_image))
def on_progress_reset(self):
self.pb_list.setValue(0)