chore: format

This commit is contained in:
2025-10-10 16:43:21 +02:00
parent f0aabd63b6
commit 75c29e0ba4
551 changed files with 433948 additions and 94145 deletions

View File

@@ -1,16 +1,15 @@
function updateBrightness(rootItem, source) {
if (rootItem.updateScreenBrightnessJob)
return;
if (rootItem.updateScreenBrightnessJob) return;
if (!source.data["PowerDevil"]) {
return;
}
if (!source.data["PowerDevil"]) {
return;
}
// we don't want passive brightness change send setBrightness call
rootItem.disableBrightnessUpdate = true;
// we don't want passive brightness change send setBrightness call
rootItem.disableBrightnessUpdate = true;
if (typeof source.data["PowerDevil"]["Screen Brightness"] === 'number') {
rootItem.screenBrightness = source.data["PowerDevil"]["Screen Brightness"];
}
rootItem.disableBrightnessUpdate = false;
}
if (typeof source.data["PowerDevil"]["Screen Brightness"] === "number") {
rootItem.screenBrightness = source.data["PowerDevil"]["Screen Brightness"];
}
rootItem.disableBrightnessUpdate = false;
}