Skip to content

Commit d85bf1b

Browse files
RSS1102FabianLars
andauthored
docs: system-tray example error (tauri-apps#2827)
Co-authored-by: Fabian-Lars <[email protected]>
1 parent 5e44334 commit d85bf1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/plugin/system-tray.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ TrayIconBuilder::new()
187187
.on_menu_event(|app, event| match event.id.as_ref() {
188188
"quit" => {
189189
println!("quit menu item was clicked");
190-
app.exit();
190+
app.exit(0);
191191
}
192192
_ => {
193-
println!("menu item {} not handled", event.id.to_string());
193+
println!("menu item {:?} not handled", event.id);
194194
}
195195
})
196196
```

0 commit comments

Comments
 (0)