h-gtk/app: use idle_add instead of timeout_add for updating on startup.

This commit is contained in:
Jordan Petridis 2018-04-10 21:07:07 +03:00
parent 7bca841a1a
commit 0720222423
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -131,9 +131,8 @@ impl App {
utils::cleanup(cleanup_date); utils::cleanup(cleanup_date);
gtk::timeout_add_seconds(2, move || { gtk::idle_add(move || {
utils::refresh(None, sender.clone()); utils::refresh(None, sender.clone());
glib::Continue(false) glib::Continue(false)
}); });
} }