feat: apply visible three-second defaults to unattended prompts

This commit is contained in:
阿白叔 committed 2026-11-16 14:36:56 +08:00
1 parent e4875b4eca
commit efb8cae478
29 files changed
+675 -60

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
from cbb_refresh_verify.ui import timed_prompt
from pathlib import Path
from threading import Event
@@ -125,7 +126,7 @@ def test_management_wait_shows_same_block_and_emits_release_target(qtbot, tmp_pa
from PySide6.QtWidgets import QMessageBox
library = tmp_path/'lib.lmc'
retain(monkeypatch, library)
monkeypatch.setattr(QMessageBox, 'question', lambda *a, **kw: QMessageBox.Yes)
monkeypatch.setattr(timed_prompt, 'question', lambda *a, **kw: QMessageBox.Yes)
dialog = ManagementDialog([ManagementRequest('remove', library, 'A')], runner=lambda *a, **kw: [])
dialog.native_queue = NativeQueue()
qtbot.addWidget(dialog); dialog.show()