Fix HPopup not calling window.visiblePopupsChanged

This commit is contained in:
miruka 2020-07-20 19:45:24 -04:00
parent e5b102c761
commit 93baaf51a0

View File

@ -49,12 +49,12 @@ Popup {
onAboutToShow: previouslyFocused = window.activeFocusItem onAboutToShow: previouslyFocused = window.activeFocusItem
onOpened: { onOpened: {
window.visiblePopups[uuid] = this window.visiblePopups[uuid] = this
window.visibleMenusChanged() window.visiblePopupsChanged()
} }
onClosed: { onClosed: {
if (focusOnClosed) focusOnClosed.forceActiveFocus() if (focusOnClosed) focusOnClosed.forceActiveFocus()
delete window.visiblePopups[uuid] delete window.visiblePopups[uuid]
window.visibleMenusChanged() window.visiblePopupsChanged()
} }
Component.onDestruction: closed() Component.onDestruction: closed()