Merge branch 'develop' into feat/refresh_ui_for_team_appearence

This commit is contained in:
DismissedLight
2024-03-06 14:20:36 +08:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ internal sealed partial class GachaLogService : IGachaLogService
/// <inheritdoc/>
public async ValueTask<bool> InitializeAsync(CancellationToken token = default)
{
if (context.IsInitialized)
if (context is { IsInitialized: true })
{
return true;
}

View File

@@ -243,6 +243,11 @@
PlaceholderText="{shcm:ResourceString Name=ViewPageAchievementSearchPlaceholder}"
QueryIcon="{shcm:FontIcon Glyph=&#xE721;}"
Text="{Binding SearchText, Mode=TwoWay}">
<AutoSuggestBox.TextBoxStyle>
<Style BasedOn="{StaticResource AutoSuggestBoxTextBoxStyle}" TargetType="TextBox">
<Setter Property="IsSpellCheckEnabled" Value="False"/>
</Style>
</AutoSuggestBox.TextBoxStyle>
<mxi:Interaction.Behaviors>
<mxic:EventTriggerBehavior EventName="QuerySubmitted">
<mxic:InvokeCommandAction Command="{Binding SearchAchievementCommand}" CommandParameter="{Binding SearchText}"/>