Upload via GUI (180 Dateien)

This commit is contained in:
2026-10-03 19:51:56 +00:00
parent 9b843ecab1
commit ddc30b0fe9
38 changed files with 7174 additions and 3688 deletions
+5
View File
@@ -22,6 +22,7 @@ public static class Migration
public static void Run()
{
if (Environment.GetEnvironmentVariable("DESKCORE_DATA") is { Length: > 0 }) return; // Testmodus: nichts umziehen
if (FindLegacy() is { } legacy)
{
foreach (var folder in Folders)
@@ -67,6 +68,10 @@ public static class Migration
/// <summary>Neuer Ordner – außer der Umzug hat nicht geklappt und nur der alte existiert.</summary>
public static string Pick(Environment.SpecialFolder folder, params string[] sub)
{
// Testmodus: alle Daten in einem eigenen Ordner, damit Tests nie echte Einstellungen/Kategorien berühren
if (Environment.GetEnvironmentVariable("DESKCORE_DATA") is { Length: > 0 } testRoot)
return Path.Combine([testRoot, folder.ToString(), .. sub]);
var baseDir = Environment.GetFolderPath(folder);
if (!Directory.Exists(Path.Combine(baseDir, NewName)) && FindLegacy() is { } legacy
&& Directory.Exists(Path.Combine(baseDir, legacy)))