From 437349bd27836914d2ae2641be151dafa54b60b3 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 30 Jul 2023 17:09:10 +0200 Subject: [PATCH] TrangaSettings changed set directive --- Tranga/TrangaSettings.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Tranga/TrangaSettings.cs b/Tranga/TrangaSettings.cs index d142ed2..fdeddfe 100644 --- a/Tranga/TrangaSettings.cs +++ b/Tranga/TrangaSettings.cs @@ -1,5 +1,4 @@ -using System.Text.RegularExpressions; -using Logging; +using Logging; using Newtonsoft.Json; using Tranga.LibraryManagers; using Tranga.NotificationManagers; @@ -8,8 +7,8 @@ namespace Tranga; public class TrangaSettings { - public string downloadLocation { get; set; } - public string workingDirectory { get; set; } + public string downloadLocation { get; private set; } + public string workingDirectory { get; init; } [JsonIgnore] public string settingsFilePath => Path.Join(workingDirectory, "settings.json"); [JsonIgnore] public string tasksFilePath => Path.Join(workingDirectory, "tasks.json"); [JsonIgnore] public string coverImageCache => Path.Join(workingDirectory, "imageCache");