Fix the problem of showing and hiding statistics columns

pull/5767/head
2dust 2024-09-23 15:00:25 +08:00
parent cd6bea28b6
commit 3dfd557265
1 changed files with 7 additions and 15 deletions

View File

@ -338,24 +338,16 @@ namespace v2rayN.Views
item2.Width = item.Width; item2.Width = item.Width;
item2.DisplayIndex = displayIndex++; 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() private void StorageUI()