Improved Action Invoke
This commit is contained in:
@@ -453,7 +453,7 @@ namespace v2rayN.Desktop.Views
|
||||
{
|
||||
var item = new MenuItem()
|
||||
{
|
||||
Tag = it.Url.Replace(@"/releases", ""),
|
||||
Tag = it.Url?.Replace(@"/releases", ""),
|
||||
Header = string.Format(ResUI.menuWebsiteItem, it.CoreType.ToString().Replace("_", " ")).UpperFirstChar()
|
||||
};
|
||||
item.Click += MenuItem_Click;
|
||||
@@ -465,7 +465,7 @@ namespace v2rayN.Desktop.Views
|
||||
{
|
||||
if (sender is MenuItem item)
|
||||
{
|
||||
Utils.ProcessStart(item.Tag.ToString());
|
||||
Utils.ProcessStart(item.Tag?.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.1.3" />
|
||||
<PackageReference Include="Avalonia.ReactiveUI" Version="11.1.3" />
|
||||
<PackageReference Include="DialogHost.Avalonia" Version="0.8.1" />
|
||||
<PackageReference Include="MessageBox.Avalonia" Version="3.1.6" />
|
||||
<PackageReference Include="MessageBox.Avalonia" Version="3.1.6.13" />
|
||||
<PackageReference Include="Semi.Avalonia" Version="11.1.0.4" />
|
||||
<PackageReference Include="Semi.Avalonia.DataGrid" Version="11.1.0.4" />
|
||||
<PackageReference Include="ReactiveUI" Version="20.1.63" />
|
||||
|
||||
Reference in New Issue
Block a user