Async update of the download and play buttons upon download finished.

This commit is contained in:
Jordan Petridis
2017-10-22 01:02:48 +03:00
parent 28a10ac462
commit 51f52c3408
4 changed files with 107 additions and 52 deletions
+2 -1
View File
@@ -56,7 +56,8 @@ fn run() -> Result<()> {
if args.dl >= 0 {
let db = hammond_data::establish_connection();
downloader::latest_dl(&db, args.dl as u32).unwrap();
let db = Arc::new(Mutex::new(db));
downloader::latest_dl(db, args.dl as u32).unwrap();
}
if args.latest {