Skip to content

Commit

Permalink
#66 - compile on MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
HughHoyland authored and not-fl3 committed Mar 4, 2024
1 parent 822b2d1 commit 9cd86b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ impl EguiMq {
}

#[cfg(target_os = "macos")]
fn set_clipboard(&mut self, _mq_ctx: &mut mq::Context, text: String) {
fn set_clipboard(&mut self, text: String) {
if let Some(clipboard) = &mut self.clipboard {
if let Err(err) = clipboard.set_contents(text) {
eprintln!("Copy/Cut error: {}", err);
Expand All @@ -371,7 +371,7 @@ impl EguiMq {
}

#[cfg(target_os = "macos")]
fn get_clipboard(&mut self, _mq_ctx: &mut mq::Context) -> Option<String> {
fn get_clipboard(&mut self) -> Option<String> {
if let Some(clipboard) = &mut self.clipboard {
match clipboard.get_contents() {
Ok(contents) => Some(contents),
Expand Down

0 comments on commit 9cd86b6

Please sign in to comment.