From bb6c99056ee1c4444925ce4d2cba7e78b564d6eb Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 8 Oct 2021 17:22:43 +0800 Subject: [PATCH] style: auto hide layout orientation button when histories page is invisible --- src/Views/Widgets/Dashboard.xaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Views/Widgets/Dashboard.xaml b/src/Views/Widgets/Dashboard.xaml index 8a44473a..99f47505 100644 --- a/src/Views/Widgets/Dashboard.xaml +++ b/src/Views/Widgets/Dashboard.xaml @@ -17,6 +17,7 @@ + @@ -102,6 +103,7 @@ Width="16" Height="16" Style="{StaticResource Style.ToggleButton.SplitDirection}" ToolTip="{DynamicResource Text.Histories.DisplayMode}" + Visibility="{Binding ElementName=pageHistories,Path=IsSelected,Converter={StaticResource BoolToCollapsed}}" IsChecked="{Binding Source={x:Static models:Preference.Instance}, Path=Window.MoveCommitInfoRight, Mode=TwoWay, Converter={StaticResource InverseBool}}" Checked="ChangeOrientation" Unchecked="ChangeOrientation"/> @@ -147,7 +149,7 @@ - +