mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
native tray menu
This commit is contained in:
@@ -542,16 +542,7 @@ PanelWindow {
|
||||
id: systemTrayComponent
|
||||
|
||||
SystemTrayBar {
|
||||
onMenuRequested: (menu, item, x, y) => {
|
||||
systemTrayContextMenu.currentTrayMenu = menu;
|
||||
systemTrayContextMenu.currentTrayItem = item;
|
||||
systemTrayContextMenu.contextMenuX = rightSection.x + rightSection.width - 400 - Theme.spacingL;
|
||||
systemTrayContextMenu.contextMenuY = Theme.barHeight - Theme.spacingXS;
|
||||
systemTrayContextMenu.showContextMenu = true;
|
||||
if (menu) {
|
||||
menu.menuVisible = true;
|
||||
}
|
||||
}
|
||||
parentWindow: root
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user