Notifications: proper display on selected screen

This commit is contained in:
quadbyte 2025-08-15 10:49:09 -04:00
parent 8afb71b114
commit 2abe7c9bd1
6 changed files with 260 additions and 255 deletions

View file

@ -209,11 +209,11 @@ Singleton {
function getStoredBrightness(): real {
// Try to get stored brightness for this specific monitor
var stored = Settings.data.brightness.monitorBrightness.find(m => {
if (m !== null) {
return m.name === modelData.name
}
return false
})
if (m !== null) {
return m.name === modelData.name
}
return false
})
if (stored) {
return stored.brightness / 100
}
@ -230,11 +230,11 @@ Singleton {
// Update monitor-specific brightness
var monitorIndex = Settings.data.brightness.monitorBrightness.findIndex(m => {
if (m !== null) {
return m.name === modelData.name
}
return -1
})
if (m !== null) {
return m.name === modelData.name
}
return -1
})
var monitorData = {
"name": modelData.name,
"brightness": brightnessPercent,