mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-08-26 06:21:58 +00:00
escape special fs chars
This commit is contained in:
parent
62fbeca95d
commit
805c5c5263
@ -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…
x
Reference in New Issue
Block a user