Skip to content

Commit

Permalink
Fix the problem of showing and hiding statistics columns
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Sep 23, 2024
1 parent cd6bea2 commit 3dfd557
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions v2rayN/v2rayN/Views/ProfilesView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,24 +338,16 @@ private void RestoreUI()
item2.Width = item.Width;
item2.DisplayIndex = displayIndex++;
}
if (item.Name.StartsWith("to"))
{
if (!_config.guiItem.enableStatistics)
{
item2.Visibility = Visibility.Hidden;
}
}
}
}
}

if (!_config.guiItem.enableStatistics)
{
colTodayUp.Visibility =
colTodayDown.Visibility =
colTotalUp.Visibility =
colTotalDown.Visibility = Visibility.Hidden;
}
else
{
colTodayUp.Visibility =
colTodayDown.Visibility =
colTotalUp.Visibility =
colTotalDown.Visibility = Visibility.Visible;
}
}

private void StorageUI()
Expand Down

0 comments on commit 3dfd557

Please sign in to comment.