From 40545e178297269901e703e190a4e3cb32216edd Mon Sep 17 00:00:00 2001 From: Will Stevens Date: Sun, 4 May 2025 19:59:04 -0400 Subject: [PATCH] default global profile on fresh characters --- SexyMap.lua | 4 ++++ SexyMap_TBC.lua | 4 ++++ SexyMap_Vanilla.lua | 4 ++++ SexyMap_Wrath.lua | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/SexyMap.lua b/SexyMap.lua index d72192b..4ea6620 100644 --- a/SexyMap.lua +++ b/SexyMap.lua @@ -353,7 +353,11 @@ function mod:ADDON_LOADED(addon) local char = UnitName("player").."-"..GetRealmName() if not SexyMap2DB[char] then + if SexyMap2DB.global then + SexyMap2DB[char] = "global" -- Default to global profile if it exists + else SexyMap2DB[char] = {} + end end local dbToDispatch diff --git a/SexyMap_TBC.lua b/SexyMap_TBC.lua index 568e2ce..8e37a8c 100644 --- a/SexyMap_TBC.lua +++ b/SexyMap_TBC.lua @@ -345,7 +345,11 @@ function mod:ADDON_LOADED(addon) local char = UnitName("player").."-"..GetRealmName() if not SexyMap2DB[char] then + if SexyMap2DB.global then + SexyMap2DB[char] = "global" -- Default to global profile if it exists + else SexyMap2DB[char] = {} + end end local dbToDispatch diff --git a/SexyMap_Vanilla.lua b/SexyMap_Vanilla.lua index 7ca5142..e4ad5ae 100644 --- a/SexyMap_Vanilla.lua +++ b/SexyMap_Vanilla.lua @@ -366,7 +366,11 @@ function mod:ADDON_LOADED(addon) local char = UnitName("player").."-"..GetRealmName() if not SexyMap2DB[char] then + if SexyMap2DB.global then + SexyMap2DB[char] = "global" -- Default to global profile if it exists + else SexyMap2DB[char] = {} + end end local dbToDispatch diff --git a/SexyMap_Wrath.lua b/SexyMap_Wrath.lua index 7d334c5..a6549da 100644 --- a/SexyMap_Wrath.lua +++ b/SexyMap_Wrath.lua @@ -353,7 +353,11 @@ function mod:ADDON_LOADED(addon) local char = UnitName("player").."-"..GetRealmName() if not SexyMap2DB[char] then + if SexyMap2DB.global then + SexyMap2DB[char] = "global" -- Default to global profile if it exists + else SexyMap2DB[char] = {} + end end local dbToDispatch