Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master into develop #90

Merged
merged 7 commits into from
Feb 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/file_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub enum DialogState {
/// if ui.button("Select a file").clicked() {
/// self.file_dialog.select_file();
/// }
///
///
/// if let Some(path) = self.file_dialog.update(ctx).selected() {
/// println!("Selected file: {:?}", path);
/// }
Expand Down Expand Up @@ -1691,6 +1691,8 @@ impl FileDialog {
///
/// The function also sets the loaded directory as the selected item.
fn load_directory(&mut self, path: &Path) -> io::Result<()> {
self.search_value.clear();

// Do not load the same directory again.
// Use reload_directory if the content of the directory should be updated.
if let Some(x) = self.current_directory() {
Expand Down
Loading