Replace all Utils.ToInt(variable) with variable.ToInt()
This commit is contained in:
@@ -461,8 +461,8 @@ namespace v2rayN.Desktop.Views
|
||||
|
||||
private void StorageUI(string? n = null)
|
||||
{
|
||||
_config.UiItem.MainWidth = Utils.ToInt(this.Width);
|
||||
_config.UiItem.MainHeight = Utils.ToInt(this.Height);
|
||||
_config.UiItem.MainWidth = this.Width;
|
||||
_config.UiItem.MainHeight = this.Height;
|
||||
|
||||
if (_config.UiItem.MainGirdOrientation == EGirdOrientation.Horizontal)
|
||||
{
|
||||
|
||||
@@ -404,7 +404,7 @@ namespace v2rayN.Desktop.Views
|
||||
lvColumnItem.Add(new()
|
||||
{
|
||||
Name = (string)item2.Tag,
|
||||
Width = item2.IsVisible == true ? Utils.ToInt(item2.ActualWidth) : -1,
|
||||
Width = (int)(item2.IsVisible == true ? item2.ActualWidth : -1),
|
||||
Index = item2.DisplayIndex
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user