Skip to content

Commit

Permalink
rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed Sep 13, 2024
1 parent 57e5739 commit 71f14ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
<AppBarToggleButton
Command="{Binding FilterDailyQuestSwitchCommand}"
Icon="{shuxm:FontIcon Glyph=&#xE8ED;}"
IsChecked="{Binding OnlyShowDailyQuestItems, Mode=TwoWay}"
IsChecked="{Binding FilterDailyQuestItems, Mode=TwoWay}"
Label="{shuxm:ResourceString Name=ViewPageAchievementFilterDailyQuestItems}"/>
</CommandBar>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal sealed partial class AchievementViewModel : Abstraction.ViewModel, INav
private IAdvancedDbCollectionView<EntityArchive>? archives;

private bool isUncompletedItemsFirst = true;
private bool onlyShowDailyQuestItems;
private bool filterDailyQuestItems;
private string searchText = string.Empty;
private string? finishDescription;

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 71f14ca

Please sign in to comment.