remove bar dependency from modules, use QsWindow.window.screen instead

This commit is contained in:
Damocles 2026-04-26 19:01:51 +02:00
parent dc8344d0af
commit b1d0be5d31
4 changed files with 5 additions and 16 deletions

View file

@ -14,7 +14,6 @@ M.BarModule {
active: S.Modules.tray.enable && _trayRepeater.count > 0
required property var bar
property var _activeMenu: null
// --- debug logging (remove once tray is confirmed working) ---
@ -104,7 +103,7 @@ M.BarModule {
M.TrayMenu {
accentColor: root.accentColor
handle: iconItem.modelData.menu
screen: root.bar.screen
screen: QsWindow.window?.screen ?? null
anchorX: iconItem.mapToGlobal(iconItem.width / 2, 0).x - (QsWindow.window?.screen?.x ?? 0)
onDismissed: {
menuLoader.active = false;