新增启动参数-dhmkh

This commit is contained in:
lyswhut
2021-03-07 17:54:02 +08:00
parent b391b2c16d
commit 4b1bf29ea0
4 changed files with 14 additions and 0 deletions
+2
View File
@@ -29,6 +29,8 @@ require('./env')
// Is disable hardware acceleration
if (global.envParams.cmdParams.dha) app.disableHardwareAcceleration()
if (global.envParams.cmdParams.dt == null && global.envParams.cmdParams.nt != null) global.envParams.cmdParams.dt = global.envParams.cmdParams.nt
if (global.envParams.cmdParams.dhmkh) app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling')
// https://github.com/electron/electron/issues/22691
app.commandLine.appendSwitch('wm-window-animations-disabled')