Skip to content

Portable Tool for an Ideal Windows Setup

-backup

Greedeks9cabf519785b
diff --git a/.Source/GTweak/View/InformationSystemView.xaml b/.Source/GTweak/View/InformationSystemView.xaml
index d5b76dad..1cdfcef7 100644
--- a/.Source/GTweak/View/InformationSystemView.xaml
+++ b/.Source/GTweak/View/InformationSystemView.xaml
@@ -187,7 +187,7 @@
<BlurEffect Radius="{Binding SetBlurValue}"/>
</TextBlock.Effect>
</TextBlock>
- <ToggleButton x:Name="BtnHiddenIP" Width="20" Height="20" Margin="10,0,0,0" Style="{StaticResource TglButtonIP}" IsChecked="{Binding StateButton}" Visibility="{Binding SetVisibility}" PreviewMouseLeftButtonDown="BtnHiddenIP_PreviewMouseLeftButtonDown" Unchecked="BtnHiddenIP_Unchecked" Checked="BtnHiddenIP_Checked"/>
+ <ToggleButton x:Name="BtnHiddenIP" Width="20" Height="20" Margin="10,0,0,0" Style="{StaticResource TglButtonIP}" IsChecked="{Binding StateButton}" Visibility="{Binding SetVisibility}" PreviewMouseLeftButtonUp="BtnHiddenIP_PreviewMouseLeftButtonUp" />
</StackPanel>
</StackPanel>
</Grid>
diff --git a/.Source/GTweak/View/InformationSystemView.xaml.cs b/.Source/GTweak/View/InformationSystemView.xaml.cs
index 76b54749..24783334 100644
--- a/.Source/GTweak/View/InformationSystemView.xaml.cs
+++ b/.Source/GTweak/View/InformationSystemView.xaml.cs
@@ -137,9 +137,12 @@ namespace GTweak.View
Timeline.SetDesiredFrameRate(doubleAnim, 400);
PopupCopy.BeginAnimation(Popup.VerticalOffsetProperty, doubleAnim);
}
+ #endregion
- private void AnimationBlurIP()
+ private void BtnHiddenIP_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
+ Parallel.Invoke(delegate { Settings.ChangingParameters(!BtnHiddenIP.IsChecked.Value, "HiddenIP"); });
+
DoubleAnimation doubleAnim = new DoubleAnimation()
{
From = BtnHiddenIP.IsChecked.Value ? 20 : 0,
@@ -150,11 +153,6 @@ namespace GTweak.View
Timeline.SetDesiredFrameRate(doubleAnim, 400);
IpAddress.Effect.BeginAnimation(BlurEffect.RadiusProperty, doubleAnim);
}
- #endregion
-
- private void BtnHiddenIP_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) => Parallel.Invoke(delegate { Settings.ChangingParameters(!BtnHiddenIP.IsChecked.Value, "HiddenIP"); });
- private void BtnHiddenIP_Unchecked(object sender, RoutedEventArgs e) => AnimationBlurIP();
- private void BtnHiddenIP_Checked(object sender, RoutedEventArgs e) => AnimationBlurIP();
private void TextComputerData_PreviewMouseDown(object sender, MouseButtonEventArgs e)
{