Skip to content

Commit

Permalink
fix(Studio): Crash when opening file-picker in relative directory (Cl…
Browse files Browse the repository at this point in the history
…oses #88)
  • Loading branch information
psyGamer committed Oct 22, 2024
1 parent baa1ccd commit b1dc2fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Studio/CelesteStudio/Studio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ private string GetFilePickerDirectory() {
Directory.CreateDirectory(dir);
}

return dir;
// URIs don't support relative paths on their own
return Path.GetFullPath(dir);
}

private void OnNewFile() {
Expand Down

0 comments on commit b1dc2fa

Please sign in to comment.