diff --git a/src/Snap.Hutao/Snap.Hutao/UI/Xaml/View/Page/AchievementPage.xaml b/src/Snap.Hutao/Snap.Hutao/UI/Xaml/View/Page/AchievementPage.xaml index 6fed33122a..390c766c74 100644 --- a/src/Snap.Hutao/Snap.Hutao/UI/Xaml/View/Page/AchievementPage.xaml +++ b/src/Snap.Hutao/Snap.Hutao/UI/Xaml/View/Page/AchievementPage.xaml @@ -331,7 +331,7 @@ diff --git a/src/Snap.Hutao/Snap.Hutao/ViewModel/Achievement/AchievementViewModel.cs b/src/Snap.Hutao/Snap.Hutao/ViewModel/Achievement/AchievementViewModel.cs index b4fc469e05..4a5caa3241 100644 --- a/src/Snap.Hutao/Snap.Hutao/ViewModel/Achievement/AchievementViewModel.cs +++ b/src/Snap.Hutao/Snap.Hutao/ViewModel/Achievement/AchievementViewModel.cs @@ -40,7 +40,7 @@ internal sealed partial class AchievementViewModel : Abstraction.ViewModel, INav private IAdvancedDbCollectionView? archives; private bool isUncompletedItemsFirst = true; - private bool onlyShowDailyQuestItems; + private bool filterDailyQuestItems; private string searchText = string.Empty; private string? finishDescription; @@ -100,10 +100,10 @@ public bool IsUncompletedItemsFirst set => SetProperty(ref isUncompletedItemsFirst, value); } - public bool OnlyShowDailyQuestItems + public bool FilterDailyQuestItems { - get => onlyShowDailyQuestItems; - set => SetProperty(ref onlyShowDailyQuestItems, value); + get => filterDailyQuestItems; + set => SetProperty(ref filterDailyQuestItems, value); } public string? FinishDescription @@ -437,7 +437,7 @@ private void UpdateAchievementsFilterByDailyQuest() return; } - if (OnlyShowDailyQuestItems) + if (FilterDailyQuestItems) { Achievements.Filter = (AchievementView view) => view.Inner.IsDailyQuest; AchievementGoals.Filter = goal => Achievements.View.FirstOrDefault(view => view.Inner.Goal == goal.Id) is not null;