Add maximum results shown warning when always preview is on

This commit is contained in:
Jack251970 2025-09-03 21:42:47 +08:00
parent 09366f5bed
commit c8dedd50d5
2 changed files with 10 additions and 0 deletions

View file

@ -327,6 +327,7 @@
<system:String x:Key="PlaceholderTextTip">Change placeholder text. Input empty will use: {0}</system:String>
<system:String x:Key="KeepMaxResults">Fixed Window Size</system:String>
<system:String x:Key="KeepMaxResultsToolTip">The window size is not adjustable by dragging.</system:String>
<system:String x:Key="MaxShowResultsCannotWorkWithAlwaysPreview">Since Always Preview is on, maximum results shown may not take effect because preview panel requires a certain minimum height</system:String>
<!-- Setting Hotkey -->
<system:String x:Key="hotkey">Hotkey</system:String>

View file

@ -545,6 +545,15 @@
SelectedItem="{Binding Settings.MaxResultsToShow}" />
</cc:Card>
</cc:ExCard>
<cc:InfoBar
Title=""
Margin="0 4 0 0"
Closable="False"
IsIconVisible="True"
Length="Long"
Message="{DynamicResource MaxShowResultsCannotWorkWithAlwaysPreview}"
Type="Warning"
Visibility="{Binding Settings.AlwaysPreview, Converter={StaticResource BoolToVisibilityConverter}, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" />
<!-- Time and date -->
<cc:CardGroup Margin="0 14 0 0">