mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
escape special fs chars
This commit is contained in:
parent
62fbeca95d
commit
805c5c5263
1 changed files with 3 additions and 1 deletions
|
|
@ -37,7 +37,9 @@ pub fn build(
|
|||
on_choose: impl Fn(File, Rc<Action>) + 'static,
|
||||
) -> StatusPage {
|
||||
// Init components
|
||||
let dialog = FileDialog::builder().initial_name(initial_filename).build();
|
||||
let dialog = FileDialog::builder()
|
||||
.initial_name(initial_filename.replace(std::path::MAIN_SEPARATOR, "-"))
|
||||
.build();
|
||||
let file_launcher = FileLauncher::new(File::NONE);
|
||||
|
||||
let action = Rc::new(Action::new()); // public callback API
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue