From 7a53b4a4c7bf933f6d50528b38428f550d96e452 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Wed, 6 Dec 2023 11:26:55 -0500 Subject: [PATCH] fix crash with new users --- source/utils/session.bs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/utils/session.bs b/source/utils/session.bs index 71fe1fbf..8ce892ef 100644 --- a/source/utils/session.bs +++ b/source/utils/session.bs @@ -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