Skip to content

Commit f60e325

Browse files
committed
Add option to open file path manually
1 parent 0e29713 commit f60e325

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Alpha/Gui/Windows/FilesystemWindow.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class FilesystemWindow : Window, IDisposable {
1616
public FileResource? File;
1717

1818
private string filter = string.Empty;
19+
private string manualFile = string.Empty;
1920
private readonly HashSet<string> filteredDirectories = [];
2021
private readonly HashSet<string> visibleRootCategories = [..PathService.RootCategories.Keys];
2122
private readonly List<PathService.File> selectedFiles = new();
@@ -82,6 +83,10 @@ private void DrawSidebar() {
8283
this.GameDataChanged();
8384
}
8485

86+
ImGui.InputText("##FilesystemWindow_ManualFile", ref this.manualFile, 1024);
87+
ImGui.SameLine();
88+
if (ImGui.Button("Open")) this.Open(new PathService.File(this.manualFile));
89+
8590
var hasSelectedFiles = this.selectedFiles.Count > 0;
8691
if (!hasSelectedFiles) ImGui.BeginDisabled();
8792
if (ImGui.Button("Export selected files")) {

0 commit comments

Comments
 (0)