mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-17 13:05:46 +00:00
Updates to v2rayN views and services
This commit is contained in:
parent
42263c6c2f
commit
92ba5d0c90
6 changed files with 3 additions and 20 deletions
1
3x-ui
1
3x-ui
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 70b365171f9b40b540be5bff1a9c8b7227a37ac6
|
|
||||||
|
|
@ -4,7 +4,7 @@ public class Global
|
||||||
{
|
{
|
||||||
#region const
|
#region const
|
||||||
|
|
||||||
public const string AppName = "shi2ray";
|
public const string AppName = "v2rayN";
|
||||||
public const string GithubUrl = "https://github.com";
|
public const string GithubUrl = "https://github.com";
|
||||||
public const string GithubApiUrl = "https://api.github.com/repos";
|
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";
|
public const string GeoUrl = "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/{0}.dat";
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,6 @@ public class GUIItem
|
||||||
public int TrayMenuServersLimit { get; set; } = 20;
|
public int TrayMenuServersLimit { get; set; } = 20;
|
||||||
public bool EnableHWA { get; set; } = false;
|
public bool EnableHWA { get; set; } = false;
|
||||||
public bool EnableLog { get; set; } = true;
|
public bool EnableLog { get; set; } = true;
|
||||||
public bool PrivacyNoticeAccepted { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ public partial class App : Application
|
||||||
/// Open only one process
|
/// Open only one process
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected override async void OnStartup(StartupEventArgs e)
|
protected override void OnStartup(StartupEventArgs e)
|
||||||
{
|
{
|
||||||
var exePathKey = Utils.GetMd5(Utils.GetExePath());
|
var exePathKey = Utils.GetMd5(Utils.GetExePath());
|
||||||
|
|
||||||
|
|
@ -38,18 +38,6 @@ public partial class App : Application
|
||||||
return;
|
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();
|
AppManager.Instance.InitComponents();
|
||||||
base.OnStartup(e);
|
base.OnStartup(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib"
|
xmlns:resx="clr-namespace:ServiceLib.Resx;assembly=ServiceLib"
|
||||||
xmlns:view="clr-namespace:v2rayN.Views"
|
xmlns:view="clr-namespace:v2rayN.Views"
|
||||||
xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib"
|
xmlns:vms="clr-namespace:ServiceLib.ViewModels;assembly=ServiceLib"
|
||||||
Title="shi2ray"
|
Title="v2rayN"
|
||||||
Width="1200"
|
Width="1200"
|
||||||
Height="800"
|
Height="800"
|
||||||
MinWidth="800"
|
MinWidth="800"
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@
|
||||||
<ApplicationIcon>Resources\v2rayN.ico</ApplicationIcon>
|
<ApplicationIcon>Resources\v2rayN.ico</ApplicationIcon>
|
||||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||||
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
|
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
|
||||||
<AssemblyTitle>shi2ray</AssemblyTitle>
|
|
||||||
<Product>shi2ray</Product>
|
|
||||||
<Title>shi2ray</Title>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue