remove bar dependency from modules, use QsWindow.window.screen instead
This commit is contained in:
parent
dc8344d0af
commit
b1d0be5d31
4 changed files with 5 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue