mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 12:50:04 -04:00
win32: refresh title bar on Window::set_theme
This commit is contained in:
@@ -2467,7 +2467,7 @@ unsafe fn public_window_callback_inner(
|
||||
let preferred_theme = userdata.window_state_lock().preferred_theme;
|
||||
|
||||
if preferred_theme.is_none() {
|
||||
let new_theme = try_theme(window, preferred_theme);
|
||||
let new_theme = try_theme(window, preferred_theme, false);
|
||||
let mut window_state = userdata.window_state_lock();
|
||||
|
||||
if window_state.current_theme != new_theme {
|
||||
|
||||
Reference in New Issue
Block a user