From 28a67fdb60d4cd96a6abb15b87f76d3c50bb5dec Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sat, 22 Jan 2022 14:35:36 -0300 Subject: [PATCH] chore(docs): update platform-specific documentation notes --- core/tauri/src/window.rs | 13 +------------ tooling/api/src/window.ts | 1 + 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/core/tauri/src/window.rs b/core/tauri/src/window.rs index bc971fc10..db3da021e 100644 --- a/core/tauri/src/window.rs +++ b/core/tauri/src/window.rs @@ -457,10 +457,6 @@ impl Window { /// Returns the monitor on which the window currently resides. /// /// Returns None if current monitor can't be detected. - /// - /// ## Platform-specific - /// - /// - **Linux:** Unsupported pub fn current_monitor(&self) -> crate::Result> { self .window @@ -473,10 +469,6 @@ impl Window { /// Returns the primary monitor of the system. /// /// Returns None if it can't identify any monitor as a primary one. - /// - /// ## Platform-specific - /// - /// - **Linux:** Unsupported pub fn primary_monitor(&self) -> crate::Result> { self .window @@ -487,10 +479,6 @@ impl Window { } /// Returns the list of all the monitors available on the system. - /// - /// ## Platform-specific - /// - /// - **Linux:** Unsupported pub fn available_monitors(&self) -> crate::Result> { self .window @@ -547,6 +535,7 @@ impl Window { /// ## Platform-specific /// /// - **macOS:** `None` has no effect. + /// - **Linux:** Urgency levels have the same effect. pub fn request_user_attention( &self, request_type: Option, diff --git a/tooling/api/src/window.ts b/tooling/api/src/window.ts index c6734bd37..07a3ec94f 100644 --- a/tooling/api/src/window.ts +++ b/tooling/api/src/window.ts @@ -514,6 +514,7 @@ class WindowManager extends WebviewWindowHandle { * #### Platform-specific * * - **macOS:** `null` has no effect. + * - **Linux:** Urgency levels have the same effect. * * @param resizable * @returns A promise indicating the success or failure of the operation.