fix: open exported files using rust's open crate (#838)

* fix: open exported files using rust's `open` crate

* feat: explorer as file opener on windows

* dev: link related issue
This commit is contained in:
Myriad-Dreamin 2024-11-17 22:08:13 +08:00 committed by GitHub
parent 263458a80b
commit 78a4117ec6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 110 additions and 37 deletions

View file

@ -208,8 +208,12 @@ mod polymorphic {
#[derive(Debug, Clone)]
pub struct OnExportRequest {
/// The path of the document to export.
pub path: PathBuf,
/// The kind of the export.
pub kind: ExportKind,
/// Whether to open the exported file(s) after the export is done.
pub open: bool,
}
#[derive(Debug, Clone)]