summaryrefslogtreecommitdiff
path: root/modules/IdleMonitors.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/IdleMonitors.qml')
-rw-r--r--modules/IdleMonitors.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/IdleMonitors.qml b/modules/IdleMonitors.qml
index ed929c4..3150973 100644
--- a/modules/IdleMonitors.qml
+++ b/modules/IdleMonitors.qml
@@ -8,8 +8,10 @@ Scope {
id: root
required property Lock lock
+ readonly property bool enabled: !Config.general.idle.inhibitWhenAudio || !Players.list.some(p => p.isPlaying)
IdleMonitor {
+ enabled: root.enabled
timeout: Config.general.idle.lockTimeout
onIsIdleChanged: {
if (isIdle)
@@ -18,6 +20,7 @@ Scope {
}
IdleMonitor {
+ enabled: root.enabled
timeout: Config.general.idle.dpmsTimeout
onIsIdleChanged: {
if (isIdle)
@@ -28,6 +31,7 @@ Scope {
}
IdleMonitor {
+ enabled: root.enabled
timeout: Config.general.idle.sleepTimeout
onIsIdleChanged: {
if (isIdle)