diff --git a/src/main.rs b/src/main.rs index 04fd54f0..b8e76a67 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,7 @@ use iced::{ tooltip::Position as TooltipPosition, }, }; -use std::{borrow::Cow, collections::HashMap, vec}; +use std::{borrow::Cow, collections::HashMap, time::Duration, vec}; fn main() { logger::install_panic_hook(); @@ -765,7 +765,7 @@ impl Flowsurface { .market_subscriptions(&self.handles) .map(Message::MarketWsEvent); - let tick = iced::window::frames().map(Message::Tick); + let tick = iced::time::every(Duration::from_millis(16)).map(Message::Tick); let hotkeys = keyboard::listen().filter_map(|event| { let keyboard::Event::KeyPressed { key, .. } = event else {