Skip to content

Commit

Permalink
Ignore post message error instead of panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Sep 18, 2024
1 parent ce0a204 commit bceaae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_impl/windows/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ impl<T> EventLoopWindowTarget<T> {
#[inline]
pub fn set_theme(&self, theme: Option<Theme>) {
*self.preferred_theme.lock() = theme;
unsafe { PostMessageW(HWND_BROADCAST, *CHANGE_THEME_MSG_ID, WPARAM(0), LPARAM(0)).unwrap() };
let _ = unsafe { PostMessageW(HWND_BROADCAST, *CHANGE_THEME_MSG_ID, WPARAM(0), LPARAM(0)) };
}
}

Expand Down

0 comments on commit bceaae9

Please sign in to comment.