refactor: compose export controller with explicit snapshots and task lifecycle

This commit is contained in:
2026-10-29 19:26:11 +08:00
parent f27482857a
commit a7a5e29cba
11 changed files with 527 additions and 365 deletions
+2 -2
View File
@@ -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: