Skip to content

Commit

Permalink
shadows windows only deps
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Nov 19, 2023
1 parent af14207 commit d6acade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ tauri-build = { version = "1.4", features = [] }
[dependencies]
tauri = { version = "1.4", features = ["shell-open"] }
enigo = { version = "0.1.3" }

[target.'cfg(any(windows, target_os = "macos"))'.dependencies]
window-shadows = "0.2.2"

[features]
Expand Down
2 changes: 2 additions & 0 deletions desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

#[cfg(any(windows, target_os = "macos"))]
use window_shadows::set_shadow;

use tauri::Manager;
use enigo::*;
use std::sync::Mutex;
Expand Down

0 comments on commit d6acade

Please sign in to comment.