Remove auto idle inhibit when media is playing
This commit is contained in:
parent
73b0dfa0ff
commit
07705bb59c
2 changed files with 0 additions and 30 deletions
|
|
@ -160,31 +160,6 @@ Singleton {
|
|||
}
|
||||
}
|
||||
|
||||
// Convenience functions for common use cases
|
||||
function inhibitForMedia(active = true) {
|
||||
if (active) {
|
||||
addInhibitor("media", "Media playback active")
|
||||
} else {
|
||||
removeInhibitor("media")
|
||||
}
|
||||
}
|
||||
|
||||
function inhibitForPresentation(active = true) {
|
||||
if (active) {
|
||||
addInhibitor("presentation", "Presentation mode")
|
||||
} else {
|
||||
removeInhibitor("presentation")
|
||||
}
|
||||
}
|
||||
|
||||
function inhibitForFullscreen(active = true) {
|
||||
if (active) {
|
||||
addInhibitor("fullscreen", "Fullscreen application")
|
||||
} else {
|
||||
removeInhibitor("fullscreen")
|
||||
}
|
||||
}
|
||||
|
||||
// Manual toggle for user control
|
||||
function manualToggle() {
|
||||
if (activeInhibitors.includes("manual")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue