Skip to content

Commit

Permalink
fix: remove hard coding when opening file picker
Browse files Browse the repository at this point in the history
  • Loading branch information
Coborax committed Nov 13, 2022
1 parent 930aba1 commit 4a61113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Signe.Editor/EditorImGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private void ShowNoProjectOpenView()

if (ImGui.BeginPopupModal("Choose Project Directory"))
{
var picker = FilePicker.GetFolderPicker(this, "C:/");
var picker = FilePicker.GetFolderPicker(this, Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.System)));
if (picker.Draw())
{
_editor.ProjectDir = picker.CurrentFolder;
Expand Down

0 comments on commit 4a61113

Please sign in to comment.