Skip to content

Commit

Permalink
Prevents update errors when the process is interrupted.
Browse files Browse the repository at this point in the history
  • Loading branch information
FellippeHeitor committed Nov 8, 2018
1 parent f948874 commit a3e8eb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions InForm/UiEditor.bas
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions InForm/updater/InFormUpdater.bas
Original file line number Diff line number Diff line change
Expand Up @@ -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!))

Expand Down

0 comments on commit a3e8eb9

Please sign in to comment.