Simplify asset code a bit
This commit is contained in:
8 files changed
+84
-96
No files matched your search
@@ -11,7 +11,7 @@ use crate::hooks::*;
|
||||
use crate::query::QueryResult;
|
||||
use crate::shortcut::GlobalHotKeyEvent;
|
||||
use crate::shortcut::ShortcutRegistry;
|
||||
pub use crate::shortcut::{use_global_shortcut, ShortcutHandle, ShortcutId, ShortcutRegistryError};
|
||||
pub use crate::shortcut::{ShortcutHandle, ShortcutId, ShortcutRegistryError};
|
||||
use crate::{
|
||||
desktop_context::{EventData, UserWindowEvent, WindowEventHandlers},
|
||||
webview::WebviewHandler,
|
||||
@@ -171,9 +171,9 @@ impl<P: 'static> App<P> {
|
||||
|
||||
let handler = crate::webview::create_new_window(
|
||||
cfg,
|
||||
dom,
|
||||
target,
|
||||
&self.proxy,
|
||||
dom,
|
||||
&self.queue,
|
||||
&self.event_handlers,
|
||||
self.shortcut_manager.clone(),
|
||||
@@ -212,10 +212,6 @@ impl<P: 'static> App<P> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn handle_poll_msg(&mut self, id: WindowId) {
|
||||
self.poll_vdom(id);
|
||||
}
|
||||
|
||||
pub fn handle_query_msg(&mut self, msg: IpcMessage, id: WindowId) {
|
||||
let Ok(result) = serde_json::from_value::<QueryResult>(msg.params()) else {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user