fix: require a durable boundary before native add submission

This commit is contained in:
阿白叔 committed 2026-11-06 16:41:36 +08:00
1 parent d9a79b6535
commit 051498ba57
4 files changed
+54 -7

No files matched your search

+1 -1
View File
@@ -836,7 +836,7 @@ def _probe_add_dialog_impl(app, job, desktop, owned_pids, root, *, library=None)
observed_failures = {}
_require_add_supervisor(job, root)
from .session_record import update_worker_state
update_worker_state(job, 'NATIVE_CALL')
update_worker_state(job, 'NATIVE_CALL', required=True)
job['_native_add_pending'] = True
win32gui.PostMessage(ok, win32con.BM_CLICK, 0, 0)
success = None