浏览代码

Changed pywebview process to be a daemon.

miningmanna 1 年之前
父节点
当前提交
a2a47c804c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/native_mode.py

+ 1 - 1
nicegui/native_mode.py

@@ -106,7 +106,7 @@ def activate(host: str, port: int, title: str, width: int, height: int, fullscre
 
     mp.freeze_support()
     args = host, port, title, width, height, fullscreen, frameless, native.method_queue, native.response_queue
-    process = mp.Process(target=open_window, args=args, daemon=False)
+    process = mp.Process(target=open_window, args=args, daemon=True)
     process.start()
 
     Thread(target=check_shutdown, daemon=True).start()