mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
override ToString
This commit is contained in:
@@ -79,7 +79,7 @@ internal sealed partial class AppOptions : DbStoreOptions
|
||||
public Region Region
|
||||
{
|
||||
get => GetOption(ref region, SettingEntry.Region, v => Region.FromRegion(v), Regions[0]).Value;
|
||||
set => SetOption(ref region, SettingEntry.Region, value, value => value.Value.Value);
|
||||
set => SetOption(ref region, SettingEntry.Region, value, value => value.ToStringOrEmpty());
|
||||
}
|
||||
|
||||
public string GeetestCustomCompositeUrl
|
||||
|
||||
@@ -46,6 +46,11 @@ internal readonly partial struct Region
|
||||
};
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Value;
|
||||
}
|
||||
|
||||
private static string EvaluateDisplayName(string value)
|
||||
{
|
||||
return value switch
|
||||
|
||||
Reference in New Issue
Block a user