Skip to content

MDViewer mdviewer-v2.4.0

Choose a tag to compare

@matthew-zb matthew-zb released this 12 Jun 02:33
[mdviewer] fix: gate RunEvent::Opened to macOS (#8)

Tauri 2's RunEvent::Opened variant only exists on macOS (it's the bridge
to NSApplication openFiles). Windows passes the launched .md via argv on
startup, which we already capture before app.run, so no post-startup
branch is needed there. Wrap the Opened arm + Emitter import behind
cfg(target_os = "macos") so cross-platform CI compiles.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>