Skip to content

Commit

Permalink
fix(macos): make sure set_icon_as_template is a mutable reference (r…
Browse files Browse the repository at this point in the history
  • Loading branch information
lemarier authored Jul 29, 2021
1 parent f1213bb commit 0d6fcde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,12 @@ pub trait SystemTrayExtMacOS {
///
/// You need to update this value before changing the icon.
///
fn set_icon_as_template(self, is_template: bool);
fn set_icon_as_template(&mut self, is_template: bool);
}

#[cfg(feature = "tray")]
impl SystemTrayExtMacOS for SystemTray {
fn set_icon_as_template(mut self, is_template: bool) {
fn set_icon_as_template(&mut self, is_template: bool) {
self.0.icon_is_template = is_template
}
}

0 comments on commit 0d6fcde

Please sign in to comment.