From 99e685798bd25d347e64f73adff3733b491fac80 Mon Sep 17 00:00:00 2001 From: Vollmer Date: Tue, 10 Sep 2024 16:47:57 +0200 Subject: [PATCH] [Bugfix] Add missing colors when doing backup restoring --- Data/DBUtil.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Data/DBUtil.lua b/Data/DBUtil.lua index 91f5324..7484c8f 100644 --- a/Data/DBUtil.lua +++ b/Data/DBUtil.lua @@ -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)