From a953611c00a24d11f747fa6c7a8be24c18c02c8d Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Fri, 15 Jan 2021 23:00:33 -0300 Subject: [PATCH] Makes sure percentage reaches 100% at the end of Help update. --- source/ide/ide_methods.bas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 7f3b590b5..af45cd40e 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -13855,7 +13855,7 @@ SUB ideupdatehelpbox NEXT i COLOR 0, 7 - IF UpdateStep >= 5 THEN + IF UpdateStep = 5 THEN maxprogresswidth = 52 'arbitrary percentage = INT(n / c * 100) percentagechars = INT(maxprogresswidth * n / c) @@ -13863,6 +13863,10 @@ SUB ideupdatehelpbox percentageMsg$ = STRING$(percentagechars, 219) + STRING$(maxprogresswidth - percentagechars, 176) + STR$(percentage) + "%" LOCATE p.y + 4, p.x + (p.w \ 2 - LEN(percentageMsg$) \ 2) + 1 PRINT percentageMsg$; + ELSEIF UpdateStep = 6 THEN + percentageMsg$ = STRING$(maxprogresswidth, 219) + "100%" + LOCATE p.y + 4, p.x + (p.w \ 2 - LEN(percentageMsg$) \ 2) + 1 + PRINT percentageMsg$; END IF '-------- end of custom display changes --------