From ddccc51daf5dc8fa212b56f5a7e2b999ffce5cd6 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Wed, 5 Jan 2022 17:48:11 -0500 Subject: [PATCH] fix: windows ci --- examples/tailwind.rs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/examples/tailwind.rs b/examples/tailwind.rs index 385e98776..1115d09b9 100644 --- a/examples/tailwind.rs +++ b/examples/tailwind.rs @@ -10,14 +10,18 @@ use dioxus::prelude::*; fn main() { dioxus::desktop::launch_cfg(app, |c| { - // we can configure our primary window through the Tauri Config - use dioxus::desktop::tao::platform::macos::*; - c.with_window(|w| { - w.with_fullsize_content_view(true) - .with_titlebar_buttons_hidden(false) - .with_titlebar_transparent(true) - .with_movable_by_window_background(true) - }) + if cfg!(target_os = "macos") { + // we can configure our primary window through the Tauri Config + use dioxus::desktop::tao::platform::macos::*; + c.with_window(|w| { + w.with_fullsize_content_view(true) + .with_titlebar_buttons_hidden(false) + .with_titlebar_transparent(true) + .with_movable_by_window_background(true) + }) + } else { + c + } }); }