mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-05 21:15:38 -05:00
brightness: delay screen change rescan of devices
This commit is contained in:
@@ -750,11 +750,18 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: screenChangeRescanTimer
|
||||
interval: 3000
|
||||
repeat: false
|
||||
onTriggered: rescanDevices()
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: Quickshell
|
||||
|
||||
function onScreensChanged() {
|
||||
rescanDevices();
|
||||
screenChangeRescanTimer.restart();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user