瀏覽代碼

Merge pull request #1732 from miningmanna/main

Fix for ctrl-c not closing the pywebview window.
Rodja Trappe 1 年之前
父節點
當前提交
06ee5c4bf8
共有 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()