From 7569465a612ee5ef84d0e58f4e1010c8d14080d4 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 17 Jul 2018 20:24:59 +0300 Subject: [PATCH] App: Remove the imposed delay before refresh_on_startup runs. The application is even lazier now and this is no longer an issue. --- hammond-gtk/src/app.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hammond-gtk/src/app.rs b/hammond-gtk/src/app.rs index 80e1ae9..3c51f1b 100644 --- a/hammond-gtk/src/app.rs +++ b/hammond-gtk/src/app.rs @@ -156,14 +156,8 @@ impl App { let sender = self.sender.clone(); if self.settings.get_boolean("refresh-on-startup") { info!("Refresh on startup."); - // The ui loads async, after initialization - // so we need to delay this a bit so it won't block - // requests that will come from loading the gui on startup. - gtk::timeout_add(1500, move || { - let s: Option> = None; - utils::refresh(s, sender.clone()); - glib::Continue(false) - }); + let s: Option> = None; + utils::refresh(s, sender.clone()); } }