remove rc around webview and add type for desktopcontext
This commit is contained in:
1 parent
64575eaee2
commit
d6b9d8f5b6
4 files changed
+30
-29
No files matched your search
@@ -10,7 +10,7 @@ use wry::application::{
|
||||
keyboard::{KeyCode, ModifiersState},
|
||||
};
|
||||
|
||||
use crate::{use_window, DesktopContext};
|
||||
use crate::{desktop_context::DesktopContext, use_window};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub(crate) struct ShortcutRegistry {
|
||||
@@ -146,7 +146,7 @@ pub struct ShortcutId {
|
||||
|
||||
/// A global shortcut. This will be automatically removed when it is dropped.
|
||||
pub struct ShortcutHandle {
|
||||
desktop: Rc<DesktopContext>,
|
||||
desktop: DesktopContext,
|
||||
/// The id of the shortcut
|
||||
pub shortcut_id: ShortcutId,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user