mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-23 01:44:26 +08:00
0.3.12
修复
This commit is contained in:
@@ -44,6 +44,10 @@ public sealed class AppSettingsSnapshot
|
||||
|
||||
public bool WeatherNoTlsRequests { get; set; }
|
||||
|
||||
public string DailyArtworkMirrorSource { get; set; } = DailyArtworkMirrorSources.Overseas;
|
||||
|
||||
public bool AutoStartWithWindows { get; set; }
|
||||
|
||||
public List<string> TopStatusComponentIds { get; set; } = [];
|
||||
|
||||
public List<string> PinnedTaskbarActions { get; set; } =
|
||||
|
||||
16
LanMountainDesktop/Models/DailyArtworkMirrorSources.cs
Normal file
16
LanMountainDesktop/Models/DailyArtworkMirrorSources.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace LanMountainDesktop.Models;
|
||||
|
||||
public static class DailyArtworkMirrorSources
|
||||
{
|
||||
public const string Domestic = "Domestic";
|
||||
public const string Overseas = "Overseas";
|
||||
|
||||
public static string Normalize(string? value)
|
||||
{
|
||||
return string.Equals(value, Domestic, StringComparison.OrdinalIgnoreCase)
|
||||
? Domestic
|
||||
: Overseas;
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@ public sealed record DailyArtworkSnapshot(
|
||||
string? Museum,
|
||||
string? ArtworkUrl,
|
||||
string? ImageUrl,
|
||||
string? ThumbnailDataUrl,
|
||||
DateTimeOffset FetchedAt);
|
||||
|
||||
public sealed record DailyPoetrySnapshot(
|
||||
|
||||
Reference in New Issue
Block a user