mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-11-02 18:07:04 +00:00
style: rustfmt tray.rs
This commit is contained in:
@@ -72,11 +72,7 @@ impl Tray {
|
||||
let builder = builder.with_icon_templated(image);
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
let builder = builder.with_icon(image);
|
||||
let icon = builder
|
||||
.with_menu_on_left_click(cfg!(target_os = "macos"))
|
||||
.with_tooltip("ArtCraft Launcher")
|
||||
.build()
|
||||
.map_err(|e| e.to_string())?;
|
||||
let icon = builder.with_menu_on_left_click(cfg!(target_os = "macos")).with_tooltip("ArtCraft Launcher").build().map_err(|e| e.to_string())?;
|
||||
let (tx, rx): (Sender<TrayAction>, Receiver<TrayAction>) = channel();
|
||||
let (show_id, check_id, quit_id) = (show.id().clone(), check.id().clone(), quit.id().clone());
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user