Skip to content

Commit

Permalink
fix: only set activation policy on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrani committed May 5, 2024
1 parent b422e89 commit b1f1e12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-tauri/src/app/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ pub fn create_webview(

pub fn init(app: &mut App) -> Result<(), Box<dyn Error>> {
// required for window.always_on_top.
app.set_activation_policy(tauri::ActivationPolicy::Accessory);
if cfg!(target_os = "macos") {
app.set_activation_policy(tauri::ActivationPolicy::Accessory);
}

let config = Config::get_config();
let window = create_window(app, &config)?;
Expand Down

0 comments on commit b1f1e12

Please sign in to comment.