Commit 6296f888 authored by Alexander Stippich's avatar Alexander Stippich

Always open menu at the same position

Summary:
Previously, the menu would open at the cursor
position. Right align it beneath the media
control bar.

Should also fix
BUG: 406025

Reviewers: mgallien, ngraham

Reviewed By: ngraham

Tags: #elisa

Differential Revision: https://phabricator.kde.org/D23359
parent 9e28b008
......@@ -111,11 +111,13 @@ ApplicationWindow {
Connections {
target: headerBar.playerControl
onOpenMenu: if (applicationMenu.visible) {
applicationMenu.close()
} else {
applicationMenu.popup()
}
onOpenMenu: {
if (applicationMenu.visible) {
applicationMenu.close()
} else {
applicationMenu.popup(mainWindow.width - applicationMenu.width, headerBar.height)
}
}
}
Connections {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment