Skip to content

The only downloader you need. 下载器的集大成者。

Fix #227

XiaoYouChRec962b74c99d
diff --git a/Ghost-Downloader-3.py b/Ghost-Downloader-3.py
index cdaecbc5..5b77853f 100644
--- a/Ghost-Downloader-3.py
+++ b/Ghost-Downloader-3.py
@@ -38,8 +38,9 @@ from qfluentwidgets import setTheme, Theme, setThemeColor
# noinspection PyUnresolvedReferences
import resources.Res_rc
-# noinspection PyUnresolvedReferences
-import winrt._winrt_windows_foundation # 修复 Nuitka 编译后 Windows 不显示弹窗的问题
+if sys.platform == "win32":
+ # noinspection PyUnresolvedReferences
+ import winrt._winrt_windows_foundation # 修复 Nuitka 编译后 Windows 不显示弹窗的问题
from app.common.methods import loadPlugins
from app.view.main_window import MainWindow