Add an option to not save token

Closes #252
This commit is contained in:
Alexey Golub
2020-01-10 20:03:31 +02:00
parent cec8409ac4
commit 5cb6adf19e
3 changed files with 29 additions and 4 deletions

View File

@@ -5,9 +5,11 @@ namespace DiscordChatExporter.Core.Services
{
public class SettingsService : SettingsManager
{
public string DateFormat { get; set; } = "dd-MMM-yy hh:mm tt";
public bool IsAutoUpdateEnabled { get; set; } = true;
public string DateFormat { get; set; } = "dd-MMM-yy hh:mm tt";
public bool IsTokenPersisted { get; set; } = true;
public AuthToken? LastToken { get; set; }
@@ -21,5 +23,7 @@ namespace DiscordChatExporter.Core.Services
Configuration.SubDirectoryPath = "";
Configuration.FileName = "Settings.dat";
}
public bool ShouldSerializeLastToken() => IsTokenPersisted;
}
}