From ba1472f8a5e407f520da7850dc23f404efd6a12c Mon Sep 17 00:00:00 2001 From: Elijah Lopez Date: Wed, 28 Dec 2022 17:00:43 -0500 Subject: [PATCH] Fix set shadows on unsupported platforms --- package.json | 2 +- src-tauri/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 650a7fb..6486aca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "r2-t2", - "version": "0.2.2", + "version": "0.2.3", "private": true, "dependencies": { "@emotion/react": "^11.10.4", diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 85e1fa9..c1634fb 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -201,7 +201,7 @@ fn main() { .setup(|app| { app.manage(Mutex::new(TrayState::NotPlaying)); if let Some(window) = app.get_window("main") { - set_shadow(&window, true).expect("Unsupported platform!"); + set_shadow(&window, true).ok(); // don't care if platform is unsupported } Ok(()) })