mirror of
https://github.com/nixietab/picodulce.git
synced 2025-04-02 14:38:58 +01:00
Add files via upload
This commit is contained in:
parent
61f5e3f8dd
commit
d7d6b3de4a
@ -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()
|
||||
|
BIN
missing.png
Normal file
BIN
missing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 330 B |
Loading…
Reference in New Issue
Block a user