mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-12-15 10:01:39 +01:00
chore: Code cleanup
This commit is contained in:
parent
eed10e8b63
commit
e1cd11e601
21 changed files with 55 additions and 55 deletions
|
|
@ -30,7 +30,7 @@ impl SourceEntry {
|
|||
let imp = obj.imp();
|
||||
imp.resetSourceName.set_text(stream.alias.clone().as_str());
|
||||
let name = Arc::new(stream.name.clone());
|
||||
let volume = stream.volume.first().unwrap_or_else(|| &(0 as u32));
|
||||
let volume = stream.volume.first().unwrap_or(&0_u32);
|
||||
let fraction = (*volume as f64 / 655.36).round();
|
||||
let percentage = (fraction).to_string() + "%";
|
||||
imp.resetVolumePercentage.set_text(&percentage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue