Pass ApplicationWindow to AccountMenu

This commit is contained in:
Carl Schwan
2024-07-10 22:27:09 +02:00
parent aa00773a3b
commit 2321299084

View File

@@ -54,7 +54,7 @@ RowLayout {
TapHandler { TapHandler {
acceptedButtons: Qt.RightButton acceptedButtons: Qt.RightButton
onTapped: accountMenu.open() onTapped: accountMenu.open()
} }
} }
@@ -151,6 +151,7 @@ RowLayout {
id: accountMenu id: accountMenu
y: root.bottomEdge ? -height : accountButton.height y: root.bottomEdge ? -height : accountButton.height
connection: root.connection connection: root.connection
window: accountButton.QQC2.ApplicationWindow.window as Kirigami.ApplicationWindow
} }
Component { Component {
id: accountSwitchDialog id: accountSwitchDialog