Skip to content

Commit

Permalink
修复忽略状态不显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
noberumotto committed Nov 28, 2022
1 parent 24a6a9f commit 9ac704d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions UI/Views/DetailPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<TextBlock ToolTip="进程名" Text="{Binding ProcessName}" FontSize="12" Foreground="Gray" VerticalAlignment="Center" Margin="10,0,0,0"/>
</StackPanel>-->
<base:View Condition="=false" Value="{Binding IsRegexIgnore}">
<base:View Condition="=False" Value="{Binding IsRegexIgnore}">
<Border Background="#f51837" Padding="10,5" CornerRadius="4" Margin="0,0,0,5" VerticalAlignment="Center" HorizontalAlignment="Left" Visibility="{Binding CancelBlockBtnVisibility}" ToolTip="该应用将不再统计使用时长">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<base:Icon IconType="StatusCircleBlock" FontSize="12" VerticalAlignment="Center" Foreground="White"/>
Expand Down Expand Up @@ -94,12 +94,12 @@

</StackPanel>
<Grid Grid.Column="2">
<base:View Grid.Column="2" Condition="=false" Value="{Binding IsRegexIgnore}">
<StackPanel HorizontalAlignment="Right" Margin="0,0,20,0">
<btn:Button Command="{Binding BlockActionCommand}" CommandParameter="block" Width="120" Visibility="{Binding BlockBtnVisibility}" Icon="StatusCircleBlock">忽略此应用</btn:Button>
<btn:Button Command="{Binding BlockActionCommand}" CommandParameter="unblock" Width="120" Visibility="{Binding CancelBlockBtnVisibility}" Icon="Remove">取消忽略</btn:Button>
<base:View Condition="=False" Value="{Binding IsRegexIgnore}" HorizontalAlignment="Right" Margin="0,0,20,0">
<StackPanel>
<btn:Button Command="{Binding BlockActionCommand}" CommandParameter="block" Width="120" Visibility="{Binding BlockBtnVisibility}" Icon="StatusCircleBlock">忽略此应用</btn:Button>
<btn:Button Command="{Binding BlockActionCommand}" CommandParameter="unblock" Width="120" Visibility="{Binding CancelBlockBtnVisibility}" Icon="Remove">取消忽略</btn:Button>

</StackPanel>
</StackPanel>
</base:View>
<ItemsControl Margin="0,20,10,0" VerticalAlignment="Bottom" ItemsSource="{Binding LinkApps}" HorizontalAlignment="Right">
<ItemsControl.ItemsPanel>
Expand Down

0 comments on commit 9ac704d

Please sign in to comment.