App: Remove the imposed delay before refresh_on_startup runs.

The application is even lazier now and this is no longer an issue.
This commit is contained in:
Jordan Petridis 2018-07-17 20:24:59 +03:00
parent 5913166a13
commit 7569465a61
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -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<Vec<_>> = None;
utils::refresh(s, sender.clone());
glib::Continue(false)
});
let s: Option<Vec<_>> = None;
utils::refresh(s, sender.clone());
}
}