Fix search + linux build (#179)

This commit is contained in:
Geometrically
2023-06-20 22:04:17 -07:00
committed by GitHub
parent 8e5a0b8ae2
commit 4f9ec0e02b
7 changed files with 21 additions and 14 deletions

View File

@@ -7,8 +7,6 @@ use theseus::prelude::*;
use tauri::Manager;
use window_shadows::set_shadow;
use tracing_error::ErrorLayer;
use tracing_subscriber::EnvFilter;
@@ -86,11 +84,16 @@ fn main() {
})
}
builder = builder.setup(|app| {
let win = app.get_window("main").unwrap();
set_shadow(&win, true).unwrap();
Ok(())
});
#[cfg(not(target_os = "linux"))]
{
use window_shadows::set_shadow;
builder = builder.setup(|app| {
let win = app.get_window("main").unwrap();
set_shadow(&win, true).unwrap();
Ok(())
});
}
#[cfg(target_os = "macos")]
{