diff --git a/InForm/UiEditor.bas b/InForm/UiEditor.bas index cbc5b1e..7cbc49c 100644 --- a/InForm/UiEditor.bas +++ b/InForm/UiEditor.bas @@ -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") diff --git a/InForm/updater/InFormUpdater.bas b/InForm/updater/InFormUpdater.bas index 6938a3d..bc58b9d 100644 --- a/InForm/updater/InFormUpdater.bas +++ b/InForm/updater/InFormUpdater.bas @@ -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!))