feat: apply visible three-second defaults to unattended prompts
This commit is contained in:
1 parent
e4875b4eca
commit
efb8cae478
29 files changed
+675
-60
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user