mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-15 05:31:42 +03:00
This commit is contained in:
parent
185b0e314e
commit
63841c1060
5
.changes/fix-macos-theme-getter.md
Normal file
5
.changes/fix-macos-theme-getter.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-runtime-wry": patch
|
||||
---
|
||||
|
||||
Send theme value only once on the getter function implementation on macOS.
|
@ -2299,7 +2299,7 @@ fn handle_user_message<T: UserEvent>(
|
||||
WindowMessage::Theme(tx) => {
|
||||
#[cfg(any(windows, target_os = "macos"))]
|
||||
tx.send(map_theme(&window.theme())).unwrap();
|
||||
#[cfg(not(windows))]
|
||||
#[cfg(not(any(windows, target_os = "macos")))]
|
||||
tx.send(Theme::Light).unwrap();
|
||||
}
|
||||
// Setters
|
||||
|
Loading…
Reference in New Issue
Block a user