Implemented updater_on_startup and refresh_feed sleep.

This commit is contained in:
Jordan Petridis
2017-11-04 14:40:36 +02:00
parent a9dec8dbe8
commit ab5802cca7
5 changed files with 29 additions and 13 deletions
+3 -4
View File
@@ -19,10 +19,9 @@ use gtk;
use gtk::prelude::*;
use gtk::{ContainerExt, TextBufferExt};
thread_local!(
static GLOBAL: RefCell<Option<((
gtk::Button, gtk::Button, gtk::Button, Receiver<bool>,
))>> = RefCell::new(None));
type Foo = RefCell<Option<(gtk::Button, gtk::Button, gtk::Button, Receiver<bool>)>>;
thread_local!(static GLOBAL: Foo = RefCell::new(None));
fn epidose_widget(db: &Database, episode: &mut Episode, pd_title: &str) -> gtk::Box {
// This is just a prototype and will be reworked probably.