Restore pre 1.40 way of setting disable-color-correct-rendering in electron (#84154) (#84269) (#84296)
This commit is contained in:
parent
65cf4c836e
commit
27cd33d891
|
@ -147,6 +147,8 @@ function configureCommandlineSwitchesSync(cliArgs) {
|
|||
if (argvValue === true || argvValue === 'true') {
|
||||
if (argvKey === 'disable-hardware-acceleration') {
|
||||
app.disableHardwareAcceleration(); // needs to be called explicitly
|
||||
} else if (argvKey === 'disable-color-correct-rendering') {
|
||||
app.commandLine.appendSwitch('disable-color-correct-rendering'); // needs to be called exactly like this (https://github.com/microsoft/vscode/issues/84154)
|
||||
} else {
|
||||
app.commandLine.appendArgument(argvKey);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue