mirror of https://github.com/2dust/v2rayN
Fix the problem of showing and hiding statistics columns
parent
cd6bea28b6
commit
3dfd557265
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue