Skip to content

Commit

Permalink
fix: loading from dir
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Sep 20, 2024
1 parent f3875ac commit 897a5e2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src-tauri/src/functionality/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,11 @@ pub fn load_extensions(win: &WebviewWindow) {
for file in files.flatten() {
let path = file.path();

if path.is_file() {
let path = path.to_str().unwrap_or_default();
let path = PathBuf::from(path);
// Path can be file or folder, doesn't matter
let path = path.to_str().unwrap_or_default();
let path = PathBuf::from(path);

add_extension(win, path);
}
add_extension(win, path);
}
}

Expand Down

0 comments on commit 897a5e2

Please sign in to comment.