fix: scope release proofs and bind PCB opening consent
This commit is contained in:
1 parent
42d0cebc54
commit
466f400514
33 files changed
+1358
-61
No files matched your search
@@ -236,6 +236,14 @@ class DialogActionExecutor:
|
||||
def perform(self, snapshot: WindowSnapshot, action: dict) -> ActionResult:
|
||||
channels = tuple(action.get("channels", ()))
|
||||
action_name = action.get("action")
|
||||
if action_name == 'user_confirmed_pcb_open':
|
||||
try:
|
||||
from .pcb_open_consent import validate_action_window
|
||||
if channels != ('win32_button_click',):
|
||||
raise ValueError('PCB_OPEN_ACTION_CHANNEL_CHANGED')
|
||||
validate_action_window(snapshot, action)
|
||||
except Exception as error:
|
||||
return ActionResult(error_code='DATABASE_RECOVERY_REQUIRED', detail=str(error))
|
||||
if action_name == 'user_selected_pcb_version':
|
||||
try:
|
||||
from .pcb_restore_prompt import validate_action_window
|
||||
|
||||
Reference in new issue
Block a user