Skip to content

Commit

Permalink
fix freeze on non-mac systems when opening thumb dir
Browse files Browse the repository at this point in the history
  • Loading branch information
woelper committed Jan 30, 2025
1 parent 781d70b commit 0bb128b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/settings_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ pub fn settings_ui(app: &mut App, ctx: &Context, state: &mut OculanteState, _gfx
_ = get_disk_cache_path().map(|p|remove_dir_all(p));
}
if ui.button("Open thumbnails directory").clicked() {
_ = get_disk_cache_path().map(|p|open::that(p));
std::thread::spawn(||{
_ = get_disk_cache_path().map(|p|open::that(p));
});
}

}, ui);
Expand Down

0 comments on commit 0bb128b

Please sign in to comment.