Skip to content

Commit

Permalink
fixup! Fix run_make on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
encounter committed Feb 9, 2025
1 parent f08f4b9 commit 4b899ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion objdiff-gui/src/views/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ fn object_context_ui(ui: &mut egui::Ui, object: &ObjectConfig) {
.clicked()
{
log::info!("Opening file {}", source_path);
if let Err(e) = open::that_detached(source_path) {
if let Err(e) = open::that_detached(source_path.as_path()) {
log::error!("Failed to open source file: {e}");
}
ui.close_menu();
Expand Down
2 changes: 1 addition & 1 deletion objdiff-gui/src/views/symbol_diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl DiffViewState {
state.config.selected_obj.as_ref().and_then(|obj| obj.source_path.as_ref())
{
log::info!("Opening file {}", source_path);
open::that_detached(source_path).unwrap_or_else(|err| {
open::that_detached(source_path.as_path()).unwrap_or_else(|err| {
log::error!("Failed to open source file: {err}");
});
}
Expand Down

0 comments on commit 4b899ff

Please sign in to comment.