Skip to content

Commit

Permalink
fix: icon in systemtray is now ok
Browse files Browse the repository at this point in the history
Signed-off-by: Martichou <m@rtin.fyi>
  • Loading branch information
Martichou committed Mar 2, 2024
1 parent f5b618e commit 67be6a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use rqs_lib::channel::{ChannelAction, ChannelDirection, ChannelMessage};
use rqs_lib::{EndpointInfo, SendInfo, State, RQS};
use tauri::menu::{MenuBuilder, MenuItemBuilder};
use tauri::tray::TrayIconBuilder;
use tauri::{AppHandle, Manager};
use tauri::{AppHandle, Icon, Manager};
use tauri_plugin_autostart::MacosLauncher;
use tokio::sync::{broadcast, mpsc};

Expand Down Expand Up @@ -89,6 +89,7 @@ async fn main() -> Result<(), anyhow::Error> {
let quit = MenuItemBuilder::with_id("quit", "Quit").build(app)?;
let menu = MenuBuilder::new(app).items(&[&show, &quit]).build()?;
let _tray = TrayIconBuilder::new()
.icon(Icon::Raw(include_bytes!("../icons/icon.png").to_vec()))
.menu(&menu)
.on_menu_event(move |app, event| match event.id().as_ref() {
"show" => {
Expand Down

0 comments on commit 67be6a7

Please sign in to comment.