tray-item-rs
tray-item-rs copied to clipboard
set label
@olback any reason why this isn't working? also not sure how to update the title (if we do get this call working) after we call .display because it seems to block the whole thread with no way to issue a callback/event?
@brandonros I have found a way to make it work: https://github.com/Leksat/tray-item-rs/commit/980f0d2db45e97580ee77a961c2a87a9780b1cb1 Basically, we need to update the title on the status bar, not on the menu nor on the menu item.
after we call .display because it seems to block the whole thread
In my fork, the .display
is not blocking. Yet I'm struggling to change the menu label from a Tauri event listener. Getting error[E0277]: `*mut objc::runtime::Object` cannot be sent between threads safely
. My Rust knowledge is very very limited to solve this puzzle 😬