mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
fix counter toggle
This commit is contained in:
parent
39493d5ced
commit
c4e29249fb
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ impl Counter for Label {
|
|||
fn update(&self, bytes_total: Option<usize>) {
|
||||
self.set_visible(if let Some(bytes_total) = bytes_total {
|
||||
use crate::tool::Format;
|
||||
self.set_tooltip_text(Some(&bytes_total.bytes()));
|
||||
self.set_text(&bytes_total.bytes());
|
||||
true
|
||||
} else {
|
||||
false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue