From c92e40e3cf0c457c09d3fa04a85886d18d4cfe77 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 28 Nov 2017 10:23:19 +0200 Subject: [PATCH] Run download cleaner on startup. Closes #3. --- hammond-gtk/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hammond-gtk/src/main.rs b/hammond-gtk/src/main.rs index bac0304..5f65291 100644 --- a/hammond-gtk/src/main.rs +++ b/hammond-gtk/src/main.rs @@ -92,6 +92,11 @@ fn build_ui(app: >k::Application) { glib::Continue(false) })); + gtk::idle_add(move || { + let _ = checkup(); + glib::Continue(false) + }); + // Get the headerbar let header = headerbar::get_headerbar(&stack); window.set_titlebar(&header);