Browse Source

fix(core): Expose `ClipboardManager` and `GlobalShortcutManager` (#2263)

david 4 năm trước cách đây
mục cha
commit
6e0dbf639a
2 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 6 0
      .changes/tauri-expose-shortcut-clipboard.md
  2. 1 1
      core/tauri/src/lib.rs

+ 6 - 0
.changes/tauri-expose-shortcut-clipboard.md

@@ -0,0 +1,6 @@
+---
+"tauri": patch
+---
+
+Make `ClipboardManager` and `GlobalShortcutManager` public as they are exposed in the `AppHandle`.
+

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

@@ -94,7 +94,7 @@ pub use {
       dpi::{LogicalPosition, LogicalSize, PhysicalPosition, PhysicalSize, Pixel, Position, Size},
       WindowEvent,
     },
-    Icon, RunIteration, Runtime, UserAttentionType,
+    ClipboardManager, GlobalShortcutManager, Icon, RunIteration, Runtime, UserAttentionType,
   },
   self::state::{State, StateManager},
   self::window::{Monitor, Window},