Add option to disable hardware acceleration

This commit is contained in:
TC
2020-12-02 22:07:15 +01:00
parent 8f3e165917
commit ef9cd8cd24
3 changed files with 19 additions and 0 deletions

View File

@ -12,6 +12,7 @@ const {
isTrayEnabled,
setOptions,
startAtLogin,
disableHardwareAcceleration,
} = require("./store");
const mainMenuTemplate = (win) => [
@ -43,6 +44,14 @@ const mainMenuTemplate = (win) => [
setOptions({ autoUpdates: item.checked });
},
},
{
label: "Disable hardware acceleration",
type: "checkbox",
checked: disableHardwareAcceleration(),
click: (item) => {
setOptions({ disableHardwareAcceleration: item.checked });
},
},
...(is.windows() || is.linux()
? [
{