From cf171d5c381e515e9ace06838928438d60ccaf97 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 21 May 2023 22:02:35 +0200 Subject: [PATCH] Bring CLI in line with new Methods --- Tranga-CLI/Tranga_Cli.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tranga-CLI/Tranga_Cli.cs b/Tranga-CLI/Tranga_Cli.cs index 3f7e48e..72169e5 100644 --- a/Tranga-CLI/Tranga_Cli.cs +++ b/Tranga-CLI/Tranga_Cli.cs @@ -41,7 +41,7 @@ public static class Tranga_Cli while(tmpPath is null) tmpPath = Console.ReadLine(); if(tmpPath.Length > 0) - settings.downloadLocation = tmpPath; + settings.UpdateSettings(pDownloadLocation: tmpPath, null); Console.WriteLine($"Komga BaseURL [{settings.komga?.baseUrl}]:"); string? tmpUrl = Console.ReadLine(); @@ -73,8 +73,8 @@ public static class Tranga_Cli tmpPass += keyInfo.KeyChar; } } while (key != ConsoleKey.Enter); - - settings.komga = new Komga(tmpUrl, tmpUser, tmpPass, logger); + + settings.UpdateSettings(null, new Komga(tmpUrl, tmpUser, tmpPass, logger)); } logger.WriteLine("Tranga_CLI", "Loaded.");