1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 16:02:51 -05:00

systray: don't try to force focus of menus

This commit is contained in:
bbedward
2025-11-15 14:57:47 -05:00
parent 1798417e6a
commit d11868b99f

View File

@@ -375,7 +375,6 @@ Item {
onVisibleChanged: { onVisibleChanged: {
if (visible) { if (visible) {
updatePosition() updatePosition()
Qt.callLater(() => overflowFocusScope.forceActiveFocus())
} }
} }
@@ -677,11 +676,6 @@ Item {
showMenu = false showMenu = false
if (root.overflowWasOpenBeforeTrayMenu) { if (root.overflowWasOpenBeforeTrayMenu) {
root.menuOpen = true root.menuOpen = true
Qt.callLater(() => {
if (overflowMenu.visible && overflowFocusScope) {
overflowFocusScope.forceActiveFocus()
}
})
} }
root.overflowWasOpenBeforeTrayMenu = false root.overflowWasOpenBeforeTrayMenu = false
} }
@@ -739,7 +733,6 @@ Item {
onVisibleChanged: { onVisibleChanged: {
if (visible) { if (visible) {
updatePosition() updatePosition()
Qt.callLater(() => menuFocusScope.forceActiveFocus())
} }
} }