Skip to content

Commit

Permalink
fix crash with new users
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Dec 6, 2023
1 parent 074e758 commit 7a53b4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/utils/session.bs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ 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.lastRunVersion)
end if

' update user session settings with values from registry
Expand Down

0 comments on commit 7a53b4a

Please sign in to comment.