wip: midi import/export browser, pt.2

This commit is contained in:
🪞👃🪞 2024-11-24 19:09:31 +01:00
parent 6d8dbc6780
commit fab6113478
3 changed files with 42 additions and 5 deletions

View file

@ -149,7 +149,7 @@ impl<T: PhrasesControl> Command<T> for PhrasesCommand {
Import(command) => match command {
FileBrowserCommand::Begin => {
*state.phrases_mode_mut() = Some(
PhrasesMode::Import(state.phrase_index(), FileBrowser::new())
PhrasesMode::Import(state.phrase_index(), FileBrowser::new(None)?)
);
None
},
@ -158,7 +158,7 @@ impl<T: PhrasesControl> Command<T> for PhrasesCommand {
Export(command) => match command {
FileBrowserCommand::Begin => {
*state.phrases_mode_mut() = Some(
PhrasesMode::Export(state.phrase_index(), FileBrowser::new())
PhrasesMode::Export(state.phrase_index(), FileBrowser::new(None)?)
);
None
},