mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
ensure lastRunVersion is valid
This commit is contained in:
parent
51452abe28
commit
20cdb6fe5c
@ -71,11 +71,13 @@ sub runRegistryUserMigrations()
|
||||
' app versions < 2.0.0 didn't save LastRunVersion at the user level
|
||||
' fall back to using the apps lastRunVersion
|
||||
lastRunVersion = m.global.app.lastRunVersion
|
||||
if isValid(lastRunVersion)
|
||||
registry_write("LastRunVersion", lastRunVersion, section)
|
||||
end if
|
||||
end if
|
||||
|
||||
' BASE_MIGRATION
|
||||
if not versionChecker(lastRunVersion, CLIENT_VERSION_REQUIRING_BASE_MIGRATION)
|
||||
if isValid(lastRunVersion) and not versionChecker(lastRunVersion, CLIENT_VERSION_REQUIRING_BASE_MIGRATION)
|
||||
m.wasMigrated = true
|
||||
print `Running Registry Migration for ${CLIENT_VERSION_REQUIRING_BASE_MIGRATION} for userid: ${section}`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user