From 373460e0bbd7d1dc231a89e08e9df5df67390270 Mon Sep 17 00:00:00 2001 From: Martichou Date: Wed, 3 Jul 2024 22:30:16 +0200 Subject: [PATCH] feat: add back name inside tray menu on v2 Signed-off-by: Martichou --- app/main/src-tauri/src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/main/src-tauri/src/main.rs b/app/main/src-tauri/src/main.rs index 6a87645..61bd1c4 100644 --- a/app/main/src-tauri/src/main.rs +++ b/app/main/src-tauri/src/main.rs @@ -72,9 +72,16 @@ async fn main() -> Result<(), anyhow::Error> { debug!("Starting setup of RQuickShare app"); // Initialize system Tray + let name = MenuItemBuilder::new("RQuickShare") + .enabled(false) + .build(app)?; let show = MenuItemBuilder::with_id("show", "Show").build(app)?; let quit = MenuItemBuilder::with_id("quit", "Quit").build(app)?; - let menu = MenuBuilder::new(app).items(&[&show, &quit]).build()?; + let menu = MenuBuilder::new(app) + .item(&name) + .separator() + .items(&[&show, &quit]) + .build()?; let _tray = TrayIconBuilder::new() .icon(Image::from_bytes(include_bytes!("../icons/icon.png")).unwrap()) .menu(&menu)