Skip to content

Commit

Permalink
Fixed returned pathes from OpenFileDialogService and SaveFileDialogSe…
Browse files Browse the repository at this point in the history
…rvice
  • Loading branch information
RolandKoenig committed Dec 31, 2023
1 parent aec59ff commit 54c74d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public OpenFileDialogService(Window parent)
}
else
{
return selectedFiles[0].Path.ToString();
return selectedFiles[0].Path.AbsolutePath;
}
}

Expand Down Expand Up @@ -73,7 +73,7 @@ public OpenFileDialogService(Window parent)
else
{
return selectedFiles
.Select(x => x.Path.ToString())
.Select(x => x.Path.AbsolutePath)
.ToArray();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ public SaveFileDialogService(Window parent)

var file = await _parent.StorageProvider.SaveFilePickerAsync(filePickerSaveOptions);

return file?.Path.ToString() ?? null;
return file?.Path.AbsolutePath ?? null;
}
}

0 comments on commit 54c74d7

Please sign in to comment.