Fix Settings not loading on reload

This commit is contained in:
2024-08-26 13:09:33 +02:00
parent 63b493fa9c
commit 7b91bb699f
3 changed files with 8 additions and 7 deletions

View File

@ -49,6 +49,8 @@ internal sealed class TrangaCli : Command<TrangaCli.Settings>
if(settings.workingDirectory is not null)
TrangaSettings.LoadFromWorkingDirectory(settings.workingDirectory);
else
TrangaSettings.CreateOrUpdate();
if(settings.downloadLocation is not null)
TrangaSettings.CreateOrUpdate(downloadDirectory: settings.downloadLocation);