1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2025-01-14 19:49:33 +00:00

Prevents update errors when the process is interrupted.

This commit is contained in:
FellippeHeitor 2018-11-08 16:47:42 -02:00
parent f948874064
commit a3e8eb93e8
2 changed files with 5 additions and 5 deletions

View file

@ -1288,8 +1288,8 @@ SUB __UI_BeforeUpdateDisplay
STATIC serverVersion$, isBeta$, serverBeta%%
STATIC updateDescription$
localVersionNumber! = VAL(ReadSetting("InForm/InFormVersion.bas", "", "CONST __UI_VersionNumber"))
localVersionIsBeta%% = ReadSetting("InForm/InFormVersion.bas", "", "CONST __UI_VersionIsBeta") = "True"
localVersionNumber! = __UI_VersionNumber
localVersionIsBeta%% = __UI_VersionIsBeta
serverVersion$ = ReadSetting("InForm/InFormUpdate.ini", "", "version")
isBeta$ = ReadSetting("InForm/InFormUpdate.ini", "", "beta")

View file

@ -67,9 +67,9 @@ SUB __UI_BeforeUpdateDisplay STATIC
END SELECT
CASE 2 'compare with current version
IF NextEvent THEN NextEvent = False: Report "Parsing update script..."
localVersion$ = ReadSetting("InForm/InFormVersion.bas", "", "CONST __UI_Version")
localVersionNumber! = VAL(ReadSetting("InForm/InFormVersion.bas", "", "CONST __UI_VersionNumber"))
localVersionisBeta%% = ReadSetting("InForm/InFormVersion.bas", "", "CONST __UI_VersionIsBeta") = "True"
localVersion$ = __UI_Version
localVersionNumber! = __UI_VersionNumber
localVersionisBeta%% = __UI_VersionIsBeta
IF localVersionisBeta%% THEN localBeta$ = " Beta version " ELSE localBeta$ = " "
Report "Local version:" + localBeta$ + LTRIM$(STR$(localVersionNumber!))