1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

Add hibernate support to power menus

This commit is contained in:
bbedward
2025-09-21 22:06:12 -04:00
parent a3b3e49313
commit 66b493fb2b
6 changed files with 180 additions and 45 deletions

View File

@@ -109,7 +109,7 @@ Singleton {
})
}
if (hibernateTimeout > 0) {
if (hibernateTimeout > 0 && SessionService.hibernateSupported) {
hibernateMonitor = Qt.createQmlObject(qmlString, root, "IdleService.HibernateMonitor")
hibernateMonitor.enabled = Qt.binding(() => root._enableGate && root.enabled && root.idleMonitorAvailable && root.hibernateTimeout > 0)
hibernateMonitor.respectInhibitors = Qt.binding(() => root.respectInhibitors)