mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-02 08:54:16 +02:00
#25 only replace settings if parameter actually contains value.
This commit is contained in:
@ -14,6 +14,8 @@ public class TrangaSettings
|
||||
|
||||
public TrangaSettings(string downloadLocation, string workingDirectory, Komga? komga)
|
||||
{
|
||||
if (downloadLocation.Length < 1 || workingDirectory.Length < 1)
|
||||
throw new ArgumentException("Download-location and working-directory paths can not be empty!");
|
||||
this.workingDirectory = workingDirectory;
|
||||
this.downloadLocation = downloadLocation;
|
||||
this.komga = komga;
|
||||
|
Reference in New Issue
Block a user