Updates to v2rayN views and services

This commit is contained in:
shatinz 2026-01-30 12:33:59 +04:00
parent 42263c6c2f
commit 92ba5d0c90
6 changed files with 3 additions and 20 deletions

1
3x-ui

@ -1 +0,0 @@
Subproject commit 70b365171f9b40b540be5bff1a9c8b7227a37ac6

View file

@ -4,7 +4,7 @@ public class Global
{
#region const
public const string AppName = "shi2ray";
public const string AppName = "v2rayN";
public const string GithubUrl = "https://github.com";
public const string GithubApiUrl = "https://api.github.com/repos";
public const string GeoUrl = "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/{0}.dat";

View file

@ -74,7 +74,6 @@ public class GUIItem
public int TrayMenuServersLimit { get; set; } = 20;
public bool EnableHWA { get; set; } = false;
public bool EnableLog { get; set; } = true;
public bool PrivacyNoticeAccepted { get; set; }
}
[Serializable]

View file

@ -18,7 +18,7 @@ public partial class App : Application
/// Open only one process
/// </summary>
/// <param name="e"></param>
protected override async void OnStartup(StartupEventArgs e)
protected override void OnStartup(StartupEventArgs e)
{
var exePathKey = Utils.GetMd5(Utils.GetExePath());
@ -38,18 +38,6 @@ public partial class App : Application
return;
}
if (AppManager.Instance.Config.GuiItem.PrivacyNoticeAccepted == false)
{
var window = new Views.PrivacyNoticeWindow();
if (window.ShowDialog() != true)
{
Environment.Exit(0);
return;
}
AppManager.Instance.Config.GuiItem.PrivacyNoticeAccepted = true;
await ConfigHandler.SaveConfig(AppManager.Instance.Config);
}
AppManager.Instance.InitComponents();
base.OnStartup(e);
}

View file

@ -10,7 +10,7 @@
xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib"
xmlns:view="clr-namespace:v2rayN.Views"
xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib"
Title="shi2ray"
Title="v2rayN"
Width="1200"
Height="800"
MinWidth="800"

View file

@ -8,9 +8,6 @@
<ApplicationIcon>Resources\v2rayN.ico</ApplicationIcon>
<ApplicationManifest>app.manifest</ApplicationManifest>
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
<AssemblyTitle>shi2ray</AssemblyTitle>
<Product>shi2ray</Product>
<Title>shi2ray</Title>
</PropertyGroup>
<ItemGroup>