Skip to content

Commit

Permalink
fix tray icon builder docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Aug 2, 2023
1 parent 0349a38 commit 40df0d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/tauri/src/tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ pub struct TrayIconBuilder<R: Runtime> {
}

impl<R: Runtime> TrayIconBuilder<R> {
/// Creates a new [`TrayIconBuilder`] with default [`TrayIconAttributes`].
/// Creates a new tray icon builder.
///
/// See [`TrayIcon::new`] for more info.
/// ## Platform-specific:
///
/// - **Linux:** Sometimes the icon won't be visible unless a menu is set.
/// Setting an empty [`Menu`](crate::menu::Menu) is enough.
pub fn new() -> Self {
Self {
inner: tray_icon::TrayIconBuilder::new(),
Expand Down

0 comments on commit 40df0d0

Please sign in to comment.