The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
优化静默启动
XiaoYouChRad2bc4729ec1
diff --git a/Ghost-Downloader-3.py b/Ghost-Downloader-3.pyindex 34b07f21..39c96a65 100644--- a/Ghost-Downloader-3.py+++ b/Ghost-Downloader-3.py@@ -85,17 +85,10 @@ speedLimiter.setInterval(1000) # 一秒刷新一次speedLimiter.timeout.connect(cfg.resetGlobalSpeed) # 刷新 globalSpeed为 0speedLimiter.start()-# create main window-w = MainWindow()+w = MainWindow(silence=True if "--silence" in sys.argv else False)# loading pluginspluginsPath=os.path.join(cfg.appPath, "plugins")loadPlugins(w, pluginsPath)-try: # 静默启动- if "--silence" in sys.argv:- w.hide()-except:- w.show()-sys.exit(app.exec())diff --git a/app/view/main_window.py b/app/view/main_window.pyindex 383ccb67..9296295a 100644--- a/app/view/main_window.py+++ b/app/view/main_window.py@@ -61,13 +61,18 @@ class ThemeChangedListener(QThread):class MainWindow(MSFluentWindow):- def __init__(self):+ def __init__(self, silence=False):super().__init__()self.setMicaEffectEnabled(False)self.initWindow()+ if not silence:+ self.show()++ QApplication.processEvents()+# create sub interfaceself.taskInterface = TaskInterface(self)self.settingInterface = SettingInterface(self)@@ -281,10 +286,6 @@ class MainWindow(MSFluentWindow):self.splashScreen.setIconSize(QSize(106, 106))self.splashScreen.raise_()- self.show()-- QApplication.processEvents()-def onAppError(self, message: str):""" app error slot """QApplication.clipboard().setText(message)