Added a probably terrible way to update podcast_view async.

This commit is contained in:
Jordan Petridis
2017-10-21 22:34:20 +03:00
parent f58ad6bd8c
commit 7b0a8f0e25
5 changed files with 38 additions and 16 deletions
+1
View File
@@ -100,6 +100,7 @@ fn epidose_widget(
ep
}
pub fn episodes_listbox(connection: &Arc<Mutex<SqliteConnection>>, pd_title: &str) -> gtk::ListBox {
// TODO: handle unwraps.
let m = connection.lock().unwrap();
+1 -1
View File
@@ -29,7 +29,7 @@ pub fn podcast_widget(
if let Some(t) = title {
title_label.set_text(t);
let listbox = episodes_listbox(&connection.clone(), t);
let listbox = episodes_listbox(&connection, t);
view.add(&listbox);
}