make hardwareAcceleration setting more intuitive

This commit is contained in:
Vendicated
2024-01-06 02:02:54 +01:00
parent a89cd9d2ba
commit 0b01732293
3 changed files with 4 additions and 9 deletions

View File

@@ -24,9 +24,9 @@ if (IS_DEV) {
process.env.VENCORD_USER_DATA_DIR = DATA_DIR;
function init() {
const { disableSmoothScroll, disableHardwareAcceleration } = Settings.store;
const { disableSmoothScroll, hardwareAcceleration } = Settings.store;
if (disableHardwareAcceleration) app.disableHardwareAcceleration();
if (hardwareAcceleration === false) app.disableHardwareAcceleration();
if (disableSmoothScroll) {
app.commandLine.appendSwitch("disable-smooth-scrolling");
}