EpisodeWidget: Make cancel button insensitive.

This commit is contained in:
Jordan Petridis
2017-12-27 15:13:09 +02:00
parent 0a7825dfff
commit ada73a616f
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -212,7 +212,7 @@ fn on_download_clicked(
let pd = dbqueries::get_podcast_from_id(ep.podcast_id()).unwrap();
let pd_title = pd.title().to_owned();
let mut ep = ep.clone();
// cancel_bttn.show();
cancel_bttn.show();
progress.show();
download_bttn.hide();
thread::spawn(move || {
@@ -264,7 +264,7 @@ fn receive() -> glib::Continue {
if let Some((
ref download_bttn,
ref play_bttn,
ref _cancel_bttn,
ref cancel_bttn,
ref progress_bar,
ref reciever,
)) = *global.borrow()
@@ -272,7 +272,7 @@ fn receive() -> glib::Continue {
if reciever.try_recv().is_ok() {
download_bttn.hide();
play_bttn.show();
// cancel_bttn.hide();
cancel_bttn.hide();
progress_bar.hide();
}
}