Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Dec 19, 2024
1 parent b3d8042 commit b2bbe43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
5 changes: 2 additions & 3 deletions v2rayN/v2rayN.Desktop/Views/ClashProxiesView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<DataTemplate>
<Border
Width="160"
Margin="0"
Margin="-6"
Padding="0"
Theme="{StaticResource CardBorder}">
<DockPanel>
Expand Down Expand Up @@ -143,13 +143,12 @@
<DataTemplate>
<Border
Width="160"
Margin="0"
Margin="-6"
Padding="0"
Theme="{StaticResource CardBorder}">
<DockPanel>
<Border
Width="5"
Height="30"
Margin="0,1"
Background="YellowGreen"
CornerRadius="4"
Expand Down
7 changes: 2 additions & 5 deletions v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ private void TxtServerFilter_KeyDown(object? sender, KeyEventArgs e)
ViewModel?.RefreshServers();
}
}

//#endregion Event

//#region UI
Expand Down Expand Up @@ -353,10 +353,7 @@ private void RestoreUI()
}
if (item.Name.ToLower().StartsWith("to"))
{
if (!_config.GuiItem.EnableStatistics)
{
item2.IsVisible = false;
}
item2.IsVisible = _config.GuiItem.EnableStatistics;
}
}
}
Expand Down
6 changes: 1 addition & 5 deletions v2rayN/v2rayN/Views/ProfilesView.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using MaterialDesignThemes.Wpf;
using ReactiveUI;
using Splat;
using System;
using System.Reactive.Disposables;
using System.Windows;
using System.Windows.Controls;
Expand Down Expand Up @@ -342,10 +341,7 @@ private void RestoreUI()
}
if (item.Name.ToLower().StartsWith("to"))
{
if (!_config.GuiItem.EnableStatistics)
{
item2.Visibility = Visibility.Hidden;
}
item2.Visibility = _config.GuiItem.EnableStatistics ? Visibility.Visible : Visibility.Hidden;
}
}
}
Expand Down

0 comments on commit b2bbe43

Please sign in to comment.