dev 02020935

This commit is contained in:
Julian Freeman
2024-02-02 09:35:56 -04:00
parent a69ba157a5
commit d84b107177
8 changed files with 129 additions and 44 deletions

View File

@@ -69,7 +69,7 @@ def extract_win_icon_from_file(icon: str, default: QIcon) -> QIcon:
icon = icon.replace("'", "")
if not os.path.exists(icon):
return default
if not icon.endswith(("exe", "EXE")):
if not icon.endswith(("exe", "EXE", "dll", "DLL")):
return QIcon(icon)
large, small = win32gui.ExtractIconEx(icon, 0)