From 4a61113d6df5ae797330165276e3dd8a9761d6e6 Mon Sep 17 00:00:00 2001 From: Mikkel Mouridsen Date: Sun, 13 Nov 2022 02:11:41 +0100 Subject: [PATCH] fix: remove hard coding when opening file picker --- Signe.Editor/EditorImGui.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Signe.Editor/EditorImGui.cs b/Signe.Editor/EditorImGui.cs index e1c5b78..44ddbc6 100644 --- a/Signe.Editor/EditorImGui.cs +++ b/Signe.Editor/EditorImGui.cs @@ -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;