olback / tray-item-rs

Multi-platform Tray Indicator
https://crates.io/crates/tray-item
MIT License
287 stars 39 forks source link

How can I support other languages? #27

Closed songlinshu closed 1 year ago

songlinshu commented 1 year ago

image

fgimian commented 1 year ago

I've been going through the code today and there was a rather nasty bug when setting the tooltip which you've discovered.

I've done a major refactor of the Windows implementation and also switched to windows-rs. I've verified my version works correctly with Unicode. Give it a try at https://github.com/fgimian/tray-item-rs/tree/switch-to-windows-rs 😄

image

songlinshu commented 1 year ago

Thank you!

fgimian commented 1 year ago

Hey there @songlinshu, I suggest switching to https://github.com/tauri-apps/tray-icon for this functionality. I'll be deleting my fork of this repository in 1 week. Just thought I'd let you know in case you wanted to grab a copy. 😄

olback commented 1 year ago

This should be fixed now that we're using windows-rs instead of winapi.