Tauri & ReactJS Part 11 - System Tray, Tauri-Rust State, Tauri Events
elibro
In this video, all Rust, I code a System Tray with common features. The exception is translated tray menu, which I will do in 2023. To implement an internationalized system tray, you will need to move the tray menu generation code into its own function and use https://docs.rs/rust-i18n/latest/rust_i18n/. Then inside update_tray_menu
, you will call tray_handle.set_menu( CREATE_MENU(LANG) ).
Template: https://github.com/elibroftw/modern-desktop-app-template
For donations, I accept Monero or Music Caster translations (work for work) monero:84PR6SkYd5zaFLKDjAFrQfbaAg2c7SV3q3XDZ15QCpEZUggrN4YzY7n8m9XC3deXjo41yWHTm1LrsUpPTYGnRQbD9Cwp8En
I changed my mic settings so I like how I sound in my videos even more now.
I feel very confident nowadays when coding in Rust. I believe I'm at least an intermediate in Rust if not advanced. I can debug Rust code with ease and don't have to fight the borrow checker as often. I think if you code and debug Rust for 10 hours, you can get over its annoyances.
00:00 Demo 01:20 Tauri config 01:30 Creating ico for the tray 04:00 Rust helpers 08:26 Tray menu 12:25 System tray events 15:00 Mutating tauri state 19:327Frontend event listening 24:50 Closing statements ... https://www.youtube.com/watch?v=Xg4gczPKTuk
152170323 Bytes