Fix workign Directory in TrangaArgsMain

This commit is contained in:
Glax 2024-08-10 18:51:58 +02:00
parent 9dd52178b9
commit 8145abb744

View File

@ -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]);
}