This commit is contained in:
tr1x_em committed 2025-08-03 12:38:37 +05:30
1 parent 43e124c891
commit 5a587e7e10
1 file changed
+1 -4
+1 -4
View File
@@ -211,13 +211,10 @@ class NotificationWidget(Box):
def get_pixbuf(self, icon_path, width, height):
if icon_path.startswith("file://") and os.path.exists(icon_path):
icon_path = icon_path[7:]
else:
icon_path = get_relative_path("../../config/assets/icons/notification.png")
logger.warning(f"Invalid icon path: {icon_path}")
if not os.path.exists(icon_path):
logger.warning(f"Icon path does not exist: {icon_path}")
return None
icon_path = get_relative_path("../../config/assets/icons/notification.png")
try:
pixbuf = GdkPixbuf.Pixbuf.new_from_file(icon_path)