IdleInhibitorService.qml

This commit is contained in:
notiant
2025-10-31 18:49:00 +01:00
committed by GitHub
parent 54d5139346
commit b5dac4fc7e
+2 -2
View File
@@ -156,12 +156,12 @@ Singleton {
function manualToggle() {
if (activeInhibitors.includes("manual")) {
removeInhibitor("manual")
ToastService.showNotice(I18n.tr("tooltips.keep-awake"), I18n.tr("toast.keep-awake.disabled"), "keep-awake-on")
ToastService.showNotice(I18n.tr("tooltips.keep-awake"), I18n.tr("toast.keep-awake.disabled"), "keep-awake-off")
Logger.i("IdleInhibitor", "Manual inhibition disabled")
return false
} else {
addInhibitor("manual", "Manually activated by user")
ToastService.showNotice(I18n.tr("tooltips.keep-awake"), I18n.tr("toast.keep-awake.enabled"), "keep-awake-off")
ToastService.showNotice(I18n.tr("tooltips.keep-awake"), I18n.tr("toast.keep-awake.enabled"), "keep-awake-on")
Logger.i("IdleInhibitor", "Manual inhibition enabled (will reset on next session)")
return true
}