From 930aba12a5aaedc18db444088a20470cd2a72e05 Mon Sep 17 00:00:00 2001 From: Mikkel Mouridsen Date: Sun, 13 Nov 2022 02:09:09 +0100 Subject: [PATCH] feat(editor): added drive picker in file/folder select menu --- Signe.Editor/FilePicker.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Signe.Editor/FilePicker.cs b/Signe.Editor/FilePicker.cs index cc03302..6a42c4a 100644 --- a/Signe.Editor/FilePicker.cs +++ b/Signe.Editor/FilePicker.cs @@ -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;