Show folder names immediately and refresh stale index sizes without walking the whole drive.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 11:21:20 +02:00
parent 6fc7506eb7
commit e2916aef9c
88 changed files with 5373 additions and 544 deletions

View File

@@ -0,0 +1,25 @@
using System.Windows;
using Microsoft.Win32;
namespace Explorer.App.Settings;
internal static class SettingsPathBrowse
{
public static bool TryPick(Window? owner, string title, string filter, string? current, out string path)
{
var dlg = new OpenFileDialog
{
Title = title,
Filter = filter,
FileName = current ?? ""
};
if (dlg.ShowDialog(owner) == true)
{
path = dlg.FileName;
return true;
}
path = "";
return false;
}
}