Skip to content

Commit

Permalink
Ignore brightness updates to hidden displays
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Jun 27, 2023
1 parent e7e2145 commit d238796
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,10 @@ function updateBrightness(index, level, useCap = true, vcp = "brightness", clear
console.log(`Monitor does not exist: ${index}`)
return false
}

if(settings.hideDisplays?.[monitor.key] === true) {
return false
}

if(clearTransition && currentTransition) {
clearInterval(currentTransition)
Expand Down

0 comments on commit d238796

Please sign in to comment.