Prelim: Render progress in the right place

This commit is contained in:
Rory Fewell
2025-07-02 23:23:39 +01:00
parent c97e7ce767
commit 1b26f55991

View File

@@ -221,7 +221,6 @@ def wsetup_step_install_base(stdscr):
wsetup_screen_write_direct(
stdscr,
wsetup_screen_get_scaled_y(stdscr, WSETUP_MAIN_Y + 3),
wsetup_screen_get_scaled_x(stdscr, 40) - 22,
" Please wait while Setup copies files \n" +
" to the Windows installation folders. \n" +
"This might take several minutes to complete.",
@@ -306,10 +305,13 @@ def wsetup_step_install_base(stdscr):
if not cmd_out.startswith("pmstatus"):
continue
progress = str(int(cmd_out.split(":")[2])) + "%"
wsetup_screen_write_simple(
stdscr,
1, 0,
cmd_out.split(":")[2],
box_y + 1,
wsetup_screen_get_scaled_x(stdscr, 40) - 2,
progress,
curses.color_pair(COLOR_PAIR_NORMAL_TEXT)
)