EpisodeWidget: Minor style change.
This commit is contained in:
parent
9b0ac5b83d
commit
6d93ceb910
@ -511,11 +511,9 @@ fn progress_bar_helper(
|
|||||||
// info!("Fraction: {}", fraction);
|
// info!("Fraction: {}", fraction);
|
||||||
|
|
||||||
// Check if the download is still active
|
// Check if the download is still active
|
||||||
let active = {
|
let active = match manager::ACTIVE_DOWNLOADS.read() {
|
||||||
let m = manager::ACTIVE_DOWNLOADS
|
Ok(guard) => guard.contains_key(&episode_rowid),
|
||||||
.read()
|
Err(_) => return Err(format_err!("Failed to get a lock on the mutex.")),
|
||||||
.map_err(|_| format_err!("Failed to get a lock on the mutex."))?;
|
|
||||||
m.contains_key(&episode_rowid)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (fraction >= 1.0) && (!fraction.is_nan()) {
|
if (fraction >= 1.0) && (!fraction.is_nan()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user