mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 20:21:58 +03:00
Merge d812f65cfd into bede889ced
This commit is contained in:
commit
c0fc54359c
1 changed files with 4 additions and 2 deletions
|
|
@ -938,8 +938,10 @@ fn load_extensions(app: AppHandle) -> Vec<ExtensionScript> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_sheet_path(path: &str) -> bool {
|
fn is_sheet_path(path: &str) -> bool {
|
||||||
let lower = path.to_lowercase();
|
std::path::Path::new(path).extension().is_some_and(|ext| {
|
||||||
lower.ends_with(".numi") || lower.ends_with(".sum")
|
let ext = ext.to_string_lossy().to_lowercase();
|
||||||
|
ext == "numi" || ext == "sum"
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A sheet handed to us by the OS (file association, second launch): same
|
/// A sheet handed to us by the OS (file association, second launch): same
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue