mirror of https://github.com/2dust/v2rayN
Bug fix
parent
d189f4b443
commit
79085af994
|
@ -402,7 +402,7 @@ namespace ServiceLib.ViewModels
|
|||
}
|
||||
if (_config.uiItem.enableAutoAdjustMainLvColWidth)
|
||||
{
|
||||
Locator.Current.GetService<ProfilesViewModel>()?.AutofitColumnWidthAsync();
|
||||
_updateView?.Invoke(EViewAction.AdjustMainLvColWidth, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -723,7 +723,7 @@ namespace ServiceLib.ViewModels
|
|||
private void CheckUpdateN()
|
||||
{
|
||||
//Check for standalone windows .Net version
|
||||
if (Utils.IsWindows()
|
||||
if (Utils.IsWindows()
|
||||
&& File.Exists(Path.Combine(Utils.StartupPath(), "wpfgfx_cor3.dll"))
|
||||
&& File.Exists(Path.Combine(Utils.StartupPath(), "D3DCompiler_47_cor3.dll"))
|
||||
)
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
x:Name="lstConnections"
|
||||
AutoGenerateColumns="False"
|
||||
BorderThickness="1"
|
||||
CanUserResizeColumns="True"
|
||||
GridLinesVisibility="All"
|
||||
HeadersVisibility="Column"
|
||||
IsReadOnly="True"
|
||||
|
|
|
@ -279,6 +279,11 @@ namespace v2rayN.Desktop.Views
|
|||
var clipboardData = await AvaUtils.GetClipboardData(this);
|
||||
ViewModel?.AddServerViaClipboardAsync(clipboardData);
|
||||
break;
|
||||
case EViewAction.AdjustMainLvColWidth:
|
||||
Dispatcher.UIThread.Post(() =>
|
||||
Locator.Current.GetService<ProfilesViewModel>()?.AutofitColumnWidthAsync(),
|
||||
DispatcherPriority.Default);
|
||||
break;
|
||||
}
|
||||
|
||||
return await Task.FromResult(true);
|
||||
|
|
|
@ -184,6 +184,7 @@
|
|||
x:Name="lstRules"
|
||||
AutoGenerateColumns="False"
|
||||
BorderThickness="1"
|
||||
CanUserResizeColumns="True"
|
||||
GridLinesVisibility="All"
|
||||
HeadersVisibility="Column"
|
||||
IsReadOnly="True"
|
||||
|
|
|
@ -87,6 +87,7 @@
|
|||
x:Name="lstRoutings"
|
||||
AutoGenerateColumns="False"
|
||||
BorderThickness="1"
|
||||
CanUserResizeColumns="True"
|
||||
GridLinesVisibility="All"
|
||||
HeadersVisibility="Column"
|
||||
IsReadOnly="True"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
x:Name="lstSubscription"
|
||||
AutoGenerateColumns="False"
|
||||
BorderThickness="1"
|
||||
CanUserResizeColumns="True"
|
||||
GridLinesVisibility="All"
|
||||
HeadersVisibility="Column"
|
||||
IsReadOnly="True"
|
||||
|
|
|
@ -297,6 +297,12 @@ namespace v2rayN.Views
|
|||
var clipboardData = WindowsUtils.GetClipboardData();
|
||||
ViewModel?.AddServerViaClipboardAsync(clipboardData);
|
||||
break;
|
||||
case EViewAction.AdjustMainLvColWidth:
|
||||
Application.Current?.Dispatcher.Invoke((() =>
|
||||
{
|
||||
Locator.Current.GetService<ProfilesViewModel>()?.AutofitColumnWidthAsync();
|
||||
}), DispatcherPriority.Normal);
|
||||
break;
|
||||
}
|
||||
|
||||
return await Task.FromResult(true);
|
||||
|
|
Loading…
Reference in New Issue