mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-14 05:12:09 +08:00
1.1.1 -> 1.1.2 第22次更新
This commit is contained in:
parent
dd472b65de
commit
c42d7351c4
9
Consts/MainMultilangConst.Designer.cs
generated
9
Consts/MainMultilangConst.Designer.cs
generated
@ -159,6 +159,15 @@ namespace Sheas_Cealer.Consts {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 Please remember to come back and stop the proxy manually after use. Do you want to continue? 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
public static string _LaunchProxyPrompt {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("_LaunchProxyPrompt", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 There is an update available. Do you want to update upstream host? If No it will only open the upstream host page for you 的本地化字符串。
|
/// 查找类似 There is an update available. Do you want to update upstream host? If No it will only open the upstream host page for you 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -273,6 +273,9 @@
|
|||||||
<data name="_KillBrowserProcessPrompt" xml:space="preserve">
|
<data name="_KillBrowserProcessPrompt" xml:space="preserve">
|
||||||
<value>All processes of the selected browser will be closed before launching. Do you want to continue?</value>
|
<value>All processes of the selected browser will be closed before launching. Do you want to continue?</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="_LaunchProxyPrompt" xml:space="preserve">
|
||||||
|
<value>Please remember to come back and stop the proxy manually after use. Do you want to continue?</value>
|
||||||
|
</data>
|
||||||
<data name="_OverrideUpstreamHostPrompt" xml:space="preserve">
|
<data name="_OverrideUpstreamHostPrompt" xml:space="preserve">
|
||||||
<value>There is an update available. Do you want to update upstream host? If No it will only open the upstream host page for you</value>
|
<value>There is an update available. Do you want to update upstream host? If No it will only open the upstream host page for you</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -273,6 +273,9 @@
|
|||||||
<data name="_KillBrowserProcessPrompt" xml:space="preserve">
|
<data name="_KillBrowserProcessPrompt" xml:space="preserve">
|
||||||
<value>启动前将关闭所选浏览器的所有进程,是否继续?</value>
|
<value>启动前将关闭所选浏览器的所有进程,是否继续?</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="_LaunchProxyPrompt" xml:space="preserve">
|
||||||
|
<value>使用完请务必记得回来手动关闭代理,是否继续?</value>
|
||||||
|
</data>
|
||||||
<data name="_OverrideUpstreamHostPrompt" xml:space="preserve">
|
<data name="_OverrideUpstreamHostPrompt" xml:space="preserve">
|
||||||
<value>上游规则有更新可用,需要更新吗?否则只为你打开上游规则网页</value>
|
<value>上游规则有更新可用,需要更新吗?否则只为你打开上游规则网页</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -156,6 +156,9 @@ public partial class MainWin : Window
|
|||||||
if (!Directory.Exists(tempPath))
|
if (!Directory.Exists(tempPath))
|
||||||
Directory.CreateDirectory(tempPath);
|
Directory.CreateDirectory(tempPath);
|
||||||
|
|
||||||
|
if (MessageBox.Show(MainConst._LaunchProxyPrompt, string.Empty, MessageBoxButton.YesNo) != MessageBoxResult.Yes)
|
||||||
|
return;
|
||||||
|
|
||||||
new NginxProc().ShellRun(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, @"-c nginx.conf");
|
new NginxProc().ShellRun(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, @"-c nginx.conf");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -189,6 +192,9 @@ public partial class MainWin : Window
|
|||||||
if (!configMapNode.Children.TryGetValue("mixed-port", out mihomoPortNode!) && !configMapNode.Children.TryGetValue("port", out mihomoPortNode!))
|
if (!configMapNode.Children.TryGetValue("mixed-port", out mihomoPortNode!) && !configMapNode.Children.TryGetValue("port", out mihomoPortNode!))
|
||||||
mihomoPortNode = "7890";
|
mihomoPortNode = "7890";
|
||||||
|
|
||||||
|
if (MessageBox.Show(MainConst._LaunchProxyPrompt, string.Empty, MessageBoxButton.YesNo) != MessageBoxResult.Yes)
|
||||||
|
return;
|
||||||
|
|
||||||
proxyKey.SetValue("ProxyEnable", 1);
|
proxyKey.SetValue("ProxyEnable", 1);
|
||||||
proxyKey.SetValue("ProxyServer", "127.0.0.1:" + mihomoPortNode);
|
proxyKey.SetValue("ProxyServer", "127.0.0.1:" + mihomoPortNode);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user