Skip to content

Commit

Permalink
Merge pull request #332 from BAndysc/bool
Browse files Browse the repository at this point in the history
Replace False string literals with actual boolean
  • Loading branch information
wieslawsoltes authored Mar 21, 2024
2 parents 92263eb + cf76e7e commit 2332927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Dock.Avalonia/Controls/ToolChromeControl.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
IsEnabled="{Binding ActiveDockable.OriginalOwner, Converter={x:Static ObjectConverters.IsNull}, FallbackValue=False}">
<MenuItem.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Path="ActiveDockable.CanPin" FallbackValue="False" />
<Binding Path="ActiveDockable.CanPin" FallbackValue="{x:False}" />
<Binding Path="$parent[ToolChromeControl].IsFloating" Converter="{x:Static BoolConverters.Not}" />
</MultiBinding>
</MenuItem.IsVisible>
Expand Down Expand Up @@ -87,7 +87,7 @@
Theme="{StaticResource ChromeButton}">
<Button.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Path="ActiveDockable.CanPin" FallbackValue="False" />
<Binding Path="ActiveDockable.CanPin" FallbackValue="{x:False}" />
<TemplateBinding Property="IsFloating" Converter="{x:Static BoolConverters.Not}" />
</MultiBinding>
</Button.IsVisible>
Expand Down
2 changes: 1 addition & 1 deletion src/Dock.Avalonia/Controls/ToolTabStripItem.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
IsEnabled="{Binding OriginalOwner, Converter={x:Static ObjectConverters.IsNull}, FallbackValue=False}">
<MenuItem.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Path="CanPin" FallbackValue="False" />
<Binding Path="CanPin" FallbackValue="{x:False}" />
<Binding Path="$parent[HostWindow]" Converter="{x:Static ObjectConverters.IsNull}" />
</MultiBinding>
</MenuItem.IsVisible>
Expand Down

0 comments on commit 2332927

Please sign in to comment.