Tray position not set #12666
-
I'm struggling to implement the window relative to the tray icon. I'm aware that the Positioner Plugin now allows for it but the docs don't seem to cover it that I can find - please point me towards it if I am wrong, I only see the mention of static positions. I get the error
I have found some other posts that relate to it but they don't work, they suggest moving the reposition to the event handler that opens the window after the user clicks, but this gives me the same error. Can someone help me understand this? I can see lots of implementations in the underlying crate for
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Do you have 2 |
Beta Was this translation helpful? Give feedback.
Do you have 2
TrayIconBuilder::new()
lines in your code now? That'd be wrong. The plugin'son_tray_event
handler must be called on your "main" tray icon / the one that actually gets the click event.