Skip to content

Commit

Permalink
FileDialog: filter -> show_files_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKnauth committed Dec 19, 2023
1 parent 42456a8 commit bcd08ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ impl egui_dock::TabViewer for TabViewer<'_> {
};
if ui.button(&*setting.description).clicked() {
let mut dialog = FileDialog::open_file(current_path)
.filter(parse_filter(filter));
.show_files_filter(parse_filter(filter));
dialog.open();
self.state.open_file_dialog = Some((
dialog,
Expand Down Expand Up @@ -1146,7 +1146,7 @@ impl DebuggerTimerState {

// --------------------------------------------------------

fn parse_filter(filter: &str) -> egui_file::Filter {
fn parse_filter(filter: &str) -> egui_file::Filter<PathBuf> {
let variants: Vec<Vec<String>> = filter
.split(';')
.map(|variant| variant.split('*').map(String::from).collect())
Expand Down

0 comments on commit bcd08ba

Please sign in to comment.