From acb9231915ae76e18e2287c0dc622fffd2528d7c Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 16 Jun 2024 20:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A2=98=E9=9D=9E?= =?UTF-8?q?=E7=99=BD=E8=89=B2=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=AA=97=E5=8F=A3=E5=87=BA=E7=8E=B0=E9=97=AA?= =?UTF-8?q?=E5=B1=8F=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/main/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 33185c0..4498c44 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -38,8 +38,8 @@ process.env.VITE_PUBLIC = process.env.VITE_DEV_SERVER_URL // 解决透明窗口闪烁 app.commandLine.appendSwitch("wm-window-animations-disabled"); -// Disable GPU Acceleration for Windows 7 -if (release().startsWith("6.1")) app.disableHardwareAcceleration(); +// 解决创建窗口屏幕闪烁问题 +app.disableHardwareAcceleration(); // Set application name for Windows 10+ notifications if (process.platform === "win32") app.setAppUserModelId(app.getName());