Pass ApplicationWindow to AccountMenu
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user