allow users lastrunversion to be invalid. update value and show whats new after login if value is invalid

This commit is contained in:
Charles Ewert 2023-12-06 19:33:48 -05:00
parent 1c1dec72b1
commit ed9356d7c3
2 changed files with 2 additions and 4 deletions

View File

@ -73,7 +73,8 @@ sub Main (args as dynamic) as void
end if
' has the current user ran this version before?
if not versionChecker(m.global.session.user.settings.lastRunVersion, m.global.app.version)
usersLastRunVersion = m.global.session.user.settings.lastRunVersion
if not isValid(usersLastRunVersion) or not versionChecker(m.global.session.user.settings.lastRunVersion, m.global.app.version)
set_user_setting("LastRunVersion", m.global.app.version)
' show what's new popup
if m.global.session.user.settings["load.allowwhatsnew"]

View File

@ -158,9 +158,6 @@ namespace session
lastRunVersion = get_user_setting("LastRunVersion")
if isValid(lastRunVersion)
session.user.Update("LastRunVersion", lastRunVersion)
else
' new user whos never ran the app before. update lastrunversion in registry
set_user_setting("LastRunVersion", m.global.app.version)
end if
' update user session settings with values from registry