Fix the problem of showing and hiding statistics columns
This commit is contained in:
@@ -338,23 +338,15 @@ 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)
|
if (!_config.guiItem.enableStatistics)
|
||||||
{
|
{
|
||||||
colTodayUp.Visibility =
|
item2.Visibility = Visibility.Hidden;
|
||||||
colTodayDown.Visibility =
|
}
|
||||||
colTotalUp.Visibility =
|
}
|
||||||
colTotalDown.Visibility = Visibility.Hidden;
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
colTodayUp.Visibility =
|
|
||||||
colTodayDown.Visibility =
|
|
||||||
colTotalUp.Visibility =
|
|
||||||
colTotalDown.Visibility = Visibility.Visible;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user