From 9c6a9f9426f07c55fc362b3dc6f59473a9526a6f Mon Sep 17 00:00:00 2001 From: jaredoconnell Date: Mon, 9 Jan 2023 11:45:50 -0500 Subject: [PATCH] Disable timer for now --- src/widgets/chat_window_widget.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/chat_window_widget.rs b/src/widgets/chat_window_widget.rs index 1efda49..32373ea 100644 --- a/src/widgets/chat_window_widget.rs +++ b/src/widgets/chat_window_widget.rs @@ -106,7 +106,7 @@ impl Widget for ChatWindowWidget { match event { Event::WindowConnected => { // Start the timer when the application launches - self.location_timer_token = ctx.request_timer(LOCATION_CHECK_TIMER_INTERVAL); + //self.location_timer_token = ctx.request_timer(LOCATION_CHECK_TIMER_INTERVAL); } Event::Timer(id) => { if *id == self.location_timer_token { @@ -245,4 +245,4 @@ fn get_dock_origin(monitor: &Option, window_size: &Size) -> druid::Poin let monitor_working_area = monitor.as_ref().unwrap().virtual_work_rect(); let pane_dock_origin_rect = druid::Point::new(monitor_working_area.x1 - window_size.width, monitor_working_area.y1 - window_size.height); pane_dock_origin_rect -} \ No newline at end of file +}