Add single-instance tauri plugin (#261)

Co-authored-by: lukas <lukas.walter@aceart.de>
This commit is contained in:
aceArt-GmbH
2024-06-12 14:44:43 +02:00
committed by GitHub
parent c5ddfa91a2
commit 5872ab9ea4
4 changed files with 36 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ use tauri::{
SystemTrayMenuItem, WindowEvent, SystemTrayHandle, Window,
};
const TRAY_LABEL: &'static str = "main-tray";
pub const TRAY_LABEL: &'static str = "main-tray";
pub fn window_event_handler<R: tauri::Runtime>(
app: &tauri::AppHandle<R>,