h-gtk/app: use idle_add instead of timeout_add for updating on startup.
This commit is contained in:
parent
7bca841a1a
commit
0720222423
@ -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)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user