We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6fd121 commit a2021c3Copy full SHA for a2021c3
.changes/set_native_icon_signature.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": 'patch:bug'
3
4
+
5
+Changed `IconMenuItem::set_native_icon` signature to take `&self` instead of `&mut self` to fix compilation error on macos.
core/tauri/src/menu/icon.rs
@@ -205,7 +205,7 @@ impl<R: Runtime> IconMenuItem<R> {
205
/// ## Platform-specific:
206
///
207
/// - **Windows / Linux**: Unsupported.
208
- pub fn set_native_icon(&mut self, _icon: Option<NativeIcon>) -> crate::Result<()> {
+ pub fn set_native_icon(&self, _icon: Option<NativeIcon>) -> crate::Result<()> {
209
#[cfg(target_os = "macos")]
210
return run_main_thread!(self, |self_: Self| self_
211
.inner
0 commit comments