Added a probably terrible way to update podcast_view async.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user