From 8145abb744836f0381a0686c2a5340198a21f78d Mon Sep 17 00:00:00 2001 From: Glax Date: Sat, 10 Aug 2024 18:51:58 +0200 Subject: [PATCH] Fix workign Directory in TrangaArgsMain --- Tranga/TrangaArgs.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tranga/TrangaArgs.cs b/Tranga/TrangaArgs.cs index e95ad91..c1743a6 100644 --- a/Tranga/TrangaArgs.cs +++ b/Tranga/TrangaArgs.cs @@ -38,7 +38,7 @@ public partial class Tranga : GlobalBase TrangaSettings? settings = null; bool dlp = fetched.TryGetValue(downloadLocation, out string[]? downloadLocationPath); - bool wdp = fetched.TryGetValue(downloadLocation, out string[]? workingDirectoryPath); + bool wdp = fetched.TryGetValue(workingDirectory, out string[]? workingDirectoryPath); if (dlp && wdp) { @@ -52,7 +52,7 @@ public partial class Tranga : GlobalBase }else if (wdp) { if (settings is null) - settings = new TrangaSettings(downloadLocation: workingDirectoryPath![0]); + settings = new TrangaSettings(workingDirectory: workingDirectoryPath![0]); else settings = new TrangaSettings(settings.downloadLocation, workingDirectoryPath![0]); }