Skip to content

Commit

Permalink
[Bugfix] Add missing colors when doing backup restoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Sep 10, 2024
1 parent cec4b5f commit 99e6857
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Data/DBUtil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ function DB.RestoreFromBackup(backupType)

CUF_DB.colors = Util:CopyDeep(backup.colors)

-- Verify that all colors are present
Util:AddMissingProps(CUF_DB.colors, Defaults.Colors)

DB.VerifyDB()

CUF:Fire("LoadPageDB", CUF.vars.selectedUnit, CUF.vars.selectedWidget)
Expand Down

0 comments on commit 99e6857

Please sign in to comment.