add:有更新时系统级弹窗

This commit is contained in:
2025-12-20 19:16:39 +08:00
parent ddfa9c2676
commit b6368fb0e4
4 changed files with 77 additions and 0 deletions
+11
View File
@@ -59,8 +59,19 @@ namespace Ink_Canvas
private static SplashScreen _splashScreen;
private static bool _isSplashScreenShown = false;
[DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
private static extern int SetCurrentProcessExplicitAppUserModelID(string appId);
public App()
{
try
{
SetCurrentProcessExplicitAppUserModelID("InkCanvasForClass.CE");
}
catch
{
}
// 配置TLS协议以支持Windows 7
ConfigureTlsForWindows7();