Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from zsmatrix62/main
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
zsmatrix62 committed Mar 11, 2022
2 parents d5d21f0 + 6f0c553 commit c648df5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src-tauri/src/ui/tray.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use tauri::{AppHandle, SystemTray, SystemTrayEvent, Wry};
use tauri::{CustomMenuItem, Icon};
use tauri::CustomMenuItem;
use tauri::{AppHandle, SystemTray, SystemTrayEvent, TrayIcon, Wry};
use tauri::{SystemTrayMenu, SystemTrayMenuItem};

use crate::ui::actions::{action_open_about, action_open_help, action_open_settings, action_quit_app, action_show_app};
Expand All @@ -13,7 +13,7 @@ impl SystemTrayBuilder {

fn new_tray() -> SystemTray {
let icon_bytes = include_bytes!("../../icons/icon.ico").to_vec();
let tray_icon = Icon::Raw(icon_bytes);
let tray_icon = TrayIcon::Raw(icon_bytes);
SystemTray::new().with_icon(tray_icon).with_menu(Self::build_menu())
}

Expand Down

0 comments on commit c648df5

Please sign in to comment.