Skip to content

Commit

Permalink
feat(editor): added drive picker in file/folder select menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Coborax committed Nov 13, 2022
1 parent 9d4957e commit 930aba1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Signe.Editor/FilePicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ public static FilePicker GetFilePicker(object o, string startingPath, string sea

public bool Draw()
{
foreach (var drive in DriveInfo.GetDrives())
{
ImGui.SameLine();
if (ImGui.Button(drive.RootDirectory.FullName))
{
CurrentFolder = drive.RootDirectory.FullName;
}
}

ImGui.Text("Current Folder: " + Path.GetFileName(RootFolder) + CurrentFolder.Replace(RootFolder, ""));
bool result = false;

Expand Down

0 comments on commit 930aba1

Please sign in to comment.