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:
nilltadios 2025-12-25 14:02:33 -05:00 committed by Jacob Kauffmann
parent 0af3d12e9e
commit 7e61a33440

View file

@ -5589,7 +5589,7 @@ impl Application for App {
}
let finished = count - running;
total_progress /= count as f32;
if running > 1 || finished > 0 {
if running >= 1 && (running > 1 || finished > 0) {
if finished > 0 {
title = fl!(
"operations-running-finished",