Bladeren bron

fix(doc): correct the doc of `content_protected()` (#7065)

Kevin Yue 2 jaren geleden
bovenliggende
commit
8fd9cfa1f2
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      core/tauri/src/window.rs

+ 1 - 1
core/tauri/src/window.rs

@@ -512,7 +512,7 @@ impl<'a, R: Runtime> WindowBuilder<'a, R> {
     self
   }
 
-  /// Whether the window should always be on top of other windows.
+  /// Prevents the window contents from being captured by other apps.
   #[must_use]
   pub fn content_protected(mut self, protected: bool) -> Self {
     self.window_builder = self.window_builder.content_protected(protected);