Fix 1st time setting bug
Fix by Cewert
This commit is contained in:
parent
f1da07ea6e
commit
b185c08c0c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user