Эх сурвалжийг харах

enhance(docs): Document Windows-specific icon behaviour (#8153)

i-c-b 1 жил өмнө
parent
commit
416370a627

+ 4 - 0
core/tauri/src/api/notification.rs

@@ -110,6 +110,10 @@ impl Notification {
   }
 
   /// Sets the notification icon.
+  ///
+  /// ## Platform-specific
+  ///
+  /// - **Windows**: The app must be installed for this to have any effect.
   #[must_use]
   pub fn icon(mut self, icon: impl Into<String>) -> Self {
     self.icon = Some(icon.into());

+ 8 - 1
tooling/api/src/notification.ts

@@ -36,7 +36,14 @@ interface Options {
   title: string
   /** Optional notification body. */
   body?: string
-  /** Optional notification icon. */
+  /**
+   * Optional notification icon.
+   *
+   * #### Platform-specific
+   *
+   * - **Windows**: The app must be installed for this to have any effect.
+   *
+   */
   icon?: string
   /**
    * Optional notification sound.