1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

ControlCenter: Implement edit mode for customizing widgets

This commit is contained in:
bbedward
2025-09-23 14:38:01 -04:00
parent b9b1737639
commit c04177e45d
32 changed files with 2870 additions and 796 deletions

View File

@@ -352,14 +352,22 @@ Item {
}
onActiveFocusChanged: {
if (!activeFocus && !demoMode && visible) {
Qt.callLater(() => forceActiveFocus())
if (!activeFocus && !demoMode && visible && passwordField) {
Qt.callLater(() => {
if (passwordField && passwordField.forceActiveFocus) {
passwordField.forceActiveFocus()
}
})
}
}
onEnabledChanged: {
if (enabled && !demoMode && visible) {
Qt.callLater(() => forceActiveFocus())
if (enabled && !demoMode && visible && passwordField) {
Qt.callLater(() => {
if (passwordField && passwordField.forceActiveFocus) {
passwordField.forceActiveFocus()
}
})
}
}
}