mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-23 07:40:13 +01:00
Fix workign Directory in TrangaArgsMain
This commit is contained in:
parent
9dd52178b9
commit
8145abb744
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user