Fix 1st time setting bug

Fix by Cewert
This commit is contained in:
1hitsong 2023-11-27 20:08:16 -05:00
parent f1da07ea6e
commit b185c08c0c
2 changed files with 4 additions and 6 deletions

View File

@ -84,11 +84,6 @@ sub runRegistryUserMigrations()
' av1 playback no longer hidden behind user setting
registry_delete("playback.av1", section)
end if
' update lastRunVersion if needed
if hasUserVersion and lastRunVersion <> m.global.app.version
registry_write("LastRunVersion", m.global.app.version, section)
end if
end if
end for
end sub

View File

@ -156,8 +156,11 @@ namespace session
' grab lastRunVersion for this user
lastRunVersion = get_user_setting("LastRunVersion")
if lastRunVersion <> invalid
if isValid(lastRunVersion) and lastRunVersion = m.global.app.version
' Don't update the registry, only update the global session
session.user.Update("LastRunVersion", lastRunVersion)
else
set_user_setting("LastRunVersion", m.global.app.version)
end if
' update user session settings with values from registry