fix: require at least one running operation for progress title
The condition `if running > 1 || finished > 0` could display "0 operations running" when running == 0 but finished > 0. Changed to `if running >= 1 && (running > 1 || finished > 0)` to ensure the title only shows when at least one operation is running.
This commit is contained in:
parent
0af3d12e9e
commit
7e61a33440
1 changed files with 1 additions and 1 deletions
|
|
@ -5589,7 +5589,7 @@ impl Application for App {
|
||||||
}
|
}
|
||||||
let finished = count - running;
|
let finished = count - running;
|
||||||
total_progress /= count as f32;
|
total_progress /= count as f32;
|
||||||
if running > 1 || finished > 0 {
|
if running >= 1 && (running > 1 || finished > 0) {
|
||||||
if finished > 0 {
|
if finished > 0 {
|
||||||
title = fl!(
|
title = fl!(
|
||||||
"operations-running-finished",
|
"operations-running-finished",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue