refactor: compose export controller with explicit snapshots and task lifecycle
This commit is contained in:
@@ -40,13 +40,13 @@ def main() -> int:
|
||||
|
||||
window = MainWindow(project_root=PROJECT_ROOT, initial_path=PROJECT_ROOT / "sample.md")
|
||||
window.settings = settings
|
||||
original_probe_handler = window._on_pdf_probe_ready
|
||||
original_probe_handler = window.exports._on_pdf_probe_ready
|
||||
|
||||
def capture_probe(pdf_data: object) -> None:
|
||||
output_path.with_suffix(".probe.pdf").write_bytes(bytes(pdf_data))
|
||||
original_probe_handler(pdf_data)
|
||||
|
||||
window._on_pdf_probe_ready = capture_probe
|
||||
window.exports._on_pdf_probe_ready = capture_probe
|
||||
timeout_ticks = 0
|
||||
|
||||
def start_export() -> None:
|
||||
|
||||
Reference in New Issue
Block a user