Open .slatepack file with the app #13
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ fn real_main() {
|
||||||
let path = std::path::PathBuf::from(&args[1]);
|
let path = std::path::PathBuf::from(&args[1]);
|
||||||
let content = match std::fs::read_to_string(path) {
|
let content = match std::fs::read_to_string(path) {
|
||||||
Ok(s) => Some(s),
|
Ok(s) => Some(s),
|
||||||
Err(_) => None
|
Err(_) => Some(args[1].clone())
|
||||||
};
|
};
|
||||||
data = content
|
data = content
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue