mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
Add option to disable hardware acceleration
This commit is contained in:
9
menu.js
9
menu.js
@ -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()
|
||||
? [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user