mirror of
https://github.com/fanchenio/DawnLauncher.git
synced 2025-07-13 21:02:10 +08:00
修复主题非白色的情况下,创建窗口出现闪屏的问题。
This commit is contained in:
parent
fac3bda8f4
commit
acb9231915
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user