mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 00:12:50 -05:00
systray: don't try to force focus of menus
This commit is contained in:
@@ -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())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user