fix desktop to poll without budget

This commit is contained in:
Jonathan Kelley committed 2022-12-29 20:39:22 -05:00
1 parent bd720e2268
commit 7bc8150da7
5 files changed
+48 -75

No files matched your search

+2 -3
View File
@@ -82,7 +82,7 @@ impl DesktopContext {
/// onmousedown: move |_| { desktop.drag_window(); }
/// ```
pub fn drag(&self) {
let _ = self.proxy.send_event(DragWindow);
let _ = self.webview.window().drag_window();
}
/// toggle window maximize state
pub fn toggle_maximized(&self) {
@@ -129,7 +129,6 @@ impl DesktopContext {
#[derive(Debug)]
pub enum UserWindowEvent {
EditsReady,
Initialize,
Poll,
@@ -174,7 +173,7 @@ impl DesktopController {
let window = webview.window();
match user_event {
Initialize | EditsReady => {
EditsReady => {
// self.try_load_ready_webviews();
}
CloseWindow => *control_flow = ControlFlow::Exit,