Added update system to the app (#13)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-06-30 15:26:28 +02:00
1 parent 50a03e6c9d
commit d6e80a4563
33 files changed
+786 -81

No files matched your search

+6 -1
View File
@@ -6,7 +6,7 @@ namespace AIStudio.Settings;
public sealed class Data
{
/// <summary>
/// The version of the settings file. Allows us to upgrade the settings,
/// The version of the settings file. Allows us to upgrade the settings
/// when a new version is available.
/// </summary>
public Version Version { get; init; } = Version.V1;
@@ -36,4 +36,9 @@ public sealed class Data
/// Should we enable spellchecking for all input fields?
/// </summary>
public bool EnableSpellchecking { get; set; }
/// <summary>
/// If and when we should look for updates.
/// </summary>
public UpdateBehavior UpdateBehavior { get; set; } = UpdateBehavior.ONCE_STARTUP;
}
@@ -0,0 +1,10 @@
namespace AIStudio.Settings;
public enum UpdateBehavior
{
NO_CHECK,
ONCE_STARTUP,
HOURLY,
DAILY,
WEEKLY,
}