Skip to content

Commit 052168e

Browse files
authored
Merge pull request #67 from Puresyn/development
Development
2 parents 07a5845 + 8befaf6 commit 052168e

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

Core/UI/WhatsNew.lua

+2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ local function setWhatsNewContent(parent)
2626
<p>]]..KeyMasterLocals.DISPLAYVERSION..KM_AUTOVERSION.." "..KM_VERSION_STATUS..[[</p>
2727
<br/>
2828
<h2>|cff]]..h2Color..[[Fixes:|r</h2>
29+
<h2>|cff]]..h2Color..[[1.3.1 HOTFIX:|r</h2>
2930
<p>- Fixed lua error when joining a party with someone that has a newer version of Key Master.</p>
31+
<p>- - Fixed an error for new users of keymaster that would cause Key Master not to load properly.</p>
3032
<br/>
3133
<br/>
3234
<h2>|cff]]..h2Color..[[Updates:|r</h2>

KeyMaster.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## X-Max-Interface: 110002
33
## X-Min-Interface: 110002
44

5-
## Version: 1.3.0
5+
## Version: 1.3.1
66
## Title: |cffb09c60Key Master|r
77
## Title-ptBR: |cffb09c60Key Master|r
88
## Title-ruRU: |cffb09c60Key Master|r [|cffe6b080Мастер ключей|r]

Libs/Internal/Misc.lua

+11-9
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,17 @@ function KeyMaster:LOAD_SAVED_GLOBAL_VARIABLES()
273273

274274
--function KeyMaster:PurgeOldCharacterData()
275275
-- Purge all characters with incompatable data by version
276-
local playerGUID = UnitGUID("player")
277-
local buildVersion = KeyMaster_DB.addonConfig.version
278-
if buildVersion ~= nil then
279-
local _, _, major1, minor1, patch1 = strfind(buildVersion, "(%d+)%.(%d+)%.(%d+)")
280-
major1 = tonumber(major1)
281-
minor1 = tonumber(minor1)
282-
patch1 = tonumber(patch1)
283-
if (major1 <= 1 and minor1 < 3) then
284-
KeyMaster_C_DB = {}
276+
if(KeyMaster_DB) then
277+
local playerGUID = UnitGUID("player")
278+
local buildVersion = KeyMaster_DB.addonConfig.version
279+
if buildVersion ~= nil then
280+
local _, _, major1, minor1, patch1 = strfind(buildVersion, "(%d+)%.(%d+)%.(%d+)")
281+
major1 = tonumber(major1)
282+
minor1 = tonumber(minor1)
283+
patch1 = tonumber(patch1)
284+
if (major1 <= 1 and minor1 < 3) then
285+
KeyMaster_C_DB = {}
286+
end
285287
end
286288
end
287289

PatchNotes.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ Key Master AddOn for World of Warcraft
33

44
PATCH NOTES:
55
--------------------------------------------------
6-
Key Master v1.3.0
6+
Key Master v1.3.1
77
--------------------------------------------------
8+
HOTFIX 1.3.1
9+
- Fixed an error for new users of keymaster that would cause Key Master not to load properly.
10+
811
Fixes:
912
- Fixed lua error when joining a party with someone that has a newer version of Key Master.
1013

0 commit comments

Comments
 (0)