Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ serde_json = "1"

# Shared state (replaces Tauri State<> extractor)
once_cell = "1"
lazy_static = "1.4.0"

# HTTP clients for service bridges (BoJ, VeriSimDB, ECHIDNA, Fleet, Hypatia, etc.)
reqwest = { version = "0.12", features = ["json", "blocking", "stream"] }
Expand Down
12 changes: 4 additions & 8 deletions src-gossamer/src/system_tray/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! Provides system tray icon and menu for PanLL, including service toggling
//! for Burble and Gossamer.

use std::sync::{Arc, Mutex};
use std::sync::Mutex;

/// System tray state
struct SystemTrayState {
Expand All @@ -16,7 +16,7 @@ struct SystemTrayState {
}

impl SystemTrayState {
fn new() -> Self {
const fn new() -> Self {
Self {
tray_handle: None,
burble_enabled: true,
Expand All @@ -25,12 +25,8 @@ impl SystemTrayState {
}
}

lazy_static::lazy_static! {
/// Global system tray state
static ref SYSTEM_TRAY_STATE: Arc<Mutex<SystemTrayState>> = {
Arc::new(Mutex::new(SystemTrayState::new()))
};
}
/// Global system tray state
static SYSTEM_TRAY_STATE: Mutex<SystemTrayState> = Mutex::new(SystemTrayState::new());

/// Initialize the system tray
pub fn init(app: &gossamer_rs::App) -> Result<(), String> {
Expand Down
Loading