feat: 支持使用命令行调用

This commit is contained in:
DLmaster361
2025-06-09 23:43:36 +08:00
parent 0e8b6b0b6b
commit 1aa4da1adf
11 changed files with 241 additions and 237 deletions

View File

@@ -112,6 +112,7 @@ class _SystemHandler:
Config.main_window.close()
QApplication.quit()
sys.exit(0)
elif sys.platform.startswith("linux"):
@@ -138,6 +139,7 @@ class _SystemHandler:
Config.main_window.close()
QApplication.quit()
sys.exit(0)
def is_startup(self) -> bool:
"""判断程序是否已经开机自启"""