fix: 添加freeze_support防止打包后子进程重复启动主窗口
PyInstaller + Windows spawn模式下,子进程会重新执行主脚本, 缺少freeze_support()导致无限循环创建窗口和OCR进程。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1147,6 +1147,7 @@ class MainWindow(QMainWindow):
|
||||
|
||||
|
||||
def main():
|
||||
mp.freeze_support()
|
||||
log_file = setup_logging()
|
||||
app = QApplication(sys.argv)
|
||||
app.setStyle("Fusion")
|
||||
|
||||
Reference in New Issue
Block a user