From d7d6b3de4a339480b435a0fca970a0dca2c11859 Mon Sep 17 00:00:00 2001 From: Nix <75538775+nixietab@users.noreply.github.com> Date: Thu, 25 Apr 2024 11:30:33 -0300 Subject: [PATCH] Add files via upload --- marroc.py | 6 +++--- missing.png | Bin 0 -> 330 bytes 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 missing.png diff --git a/marroc.py b/marroc.py index 979e6be..d3ae2c5 100644 --- a/marroc.py +++ b/marroc.py @@ -26,10 +26,10 @@ class IconLoader(QObject, threading.Thread): pixmap.loadFromData(response.content) self.icon_loaded.emit(pixmap.scaled(QSize(42, 42), Qt.KeepAspectRatio, Qt.SmoothTransformation)) else: - self.icon_loaded.emit(None) + self.icon_loaded.emit(QPixmap("missing.png")) except Exception as e: print("Error loading icon:", e) - self.icon_loaded.emit(None) + self.icon_loaded.emit(QPixmap("missing.png")) class ModrinthSearchApp(QWidget): def __init__(self): @@ -138,7 +138,7 @@ class ModrinthSearchApp(QWidget): item.setData(Qt.DecorationRole, pixmap) else: # Set a default icon if loading failed - item.setIcon(QIcon("default_icon.png")) + item.setIcon(QIcon("missing.png")) def show_mod_details_window(self): selected_item = self.mods_list.currentItem() diff --git a/missing.png b/missing.png new file mode 100644 index 0000000000000000000000000000000000000000..518a564e58c73e23ae8c911aa42e890ca6c8ecc3 GIT binary patch literal 330 zcmV-Q0k!^#P)tnJ=aW&0Y?des_3WA^3dN-o0;a&Np=Y5r zsy+B@I!EEcyAhg;)~&^q69>mx=oMNR+y5g9kApSN1!P27s88TxqQ7nclqtYMUlD7H zXxIa}n5c@0iGF-ni>tmlqCyDF*`b=vwrz*+?7g0aB4dCis+5W@mt~3VaU72}wh!8d zxtRG5$c>fQOwb~LM&wq`>eG%qAb+MiHs<+IIEjw_tEMKkT3Wu6gmGEGyZ); cjr|G6^PVE*v>&qo0000