newline in debug (+1 squashed commits)

Squashed commits:

[dbc58568d] newline in debug
This commit is contained in:
Concedo 2026-08-07 18:36:58 +08:00
parent 2580b4591d
commit 56368c0fd4

View file

@ -319,7 +319,7 @@ static void progress_callback(int step, int steps, float time, void* data)
{
printf("\n");
}
printf("\rGenerating image: %d/%d steps, %.2f %s\033[K%s", step, steps, speed, unit, step == steps ? "\n" : "");
printf("\rGenerating image: %d/%d steps, %.2f %s\033[K%s", step, steps, speed, unit, (step == steps || sddebugmode==1) ? "\n" : "");
fflush(stdout);
}