mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add Checkbox disable when no private arg
This commit is contained in:
parent
d952950894
commit
932dea0ed3
1 changed files with 11 additions and 1 deletions
|
|
@ -222,7 +222,17 @@
|
|||
<CheckBox
|
||||
Margin="12,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
IsChecked="{Binding EnablePrivate}" />
|
||||
IsChecked="{Binding EnablePrivate}">
|
||||
<CheckBox.Style>
|
||||
<Style BasedOn="{StaticResource DefaultCheckBoxStyle}" TargetType="{x:Type CheckBox}">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding Text.Length, ElementName=fileArgTextBox, UpdateSourceTrigger=PropertyChanged}" Value="0">
|
||||
<Setter Property="IsEnabled" Value="False" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</CheckBox.Style>
|
||||
</CheckBox>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
|
|
|||
Loading…
Reference in a new issue