Skip to content

Commit

Permalink
Fix set shadows on unsupported platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
elibroftw committed Dec 28, 2022
1 parent be29661 commit ba1472f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "r2-t2",
"version": "0.2.2",
"version": "0.2.3",
"private": true,
"dependencies": {
"@emotion/react": "^11.10.4",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
})
Expand Down

0 comments on commit ba1472f

Please sign in to comment.