2
0

TrangaSettings changed set directive

This commit is contained in:
glax 2023-07-30 17:09:10 +02:00
parent 000539d6a6
commit 437349bd27

View File

@ -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");