1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

power: switch to hold-style confirmation

fixes #775
This commit is contained in:
bbedward
2025-11-26 11:19:18 -05:00
parent 172c4bf0a9
commit 039c98b9e3
6 changed files with 348 additions and 113 deletions

View File

@@ -303,6 +303,7 @@ Singleton {
property bool osdPowerProfileEnabled: true
property bool powerActionConfirm: true
property int powerActionHoldDuration: 1
property var powerMenuActions: ["reboot", "logout", "poweroff", "lock", "suspend", "restart"]
property string powerMenuDefaultAction: "logout"
property bool powerMenuGridLayout: false

View File

@@ -205,6 +205,7 @@ var SPEC = {
osdPowerProfileEnabled: { def: false },
powerActionConfirm: { def: true },
powerActionHoldDuration: { def: 1 },
powerMenuActions: { def: ["reboot", "logout", "poweroff", "lock", "suspend", "restart"] },
powerMenuDefaultAction: { def: "logout" },
powerMenuGridLayout: { def: false },