feature: allows to change DateTime format (#755)

This commit is contained in:
leo 2024-12-30 17:19:55 +08:00
parent dc649e6142
commit c058b4744b
No known key found for this signature in database
12 changed files with 118 additions and 37 deletions

View file

@ -129,6 +129,21 @@ namespace SourceGit.ViewModels
set => SetProperty(ref _subjectGuideLength, value);
}
public int DateTimeFormat
{
get => Models.DateTimeFormat.ActiveIndex;
set
{
if (value != Models.DateTimeFormat.ActiveIndex &&
value >= 0 &&
value < Models.DateTimeFormat.Supported.Count)
{
Models.DateTimeFormat.ActiveIndex = value;
OnPropertyChanged();
}
}
}
public bool UseFixedTabWidth
{
get => _useFixedTabWidth;