from retail
This commit is contained in:
@@ -45,7 +45,7 @@ if LibGroupTalents then
|
||||
for i = 1, numMembers do
|
||||
local groupUnitName = UnitName(units[i])
|
||||
if groupUnitName then
|
||||
nameToUnitMap[groupUnitName] = groupUnit
|
||||
nameToUnitMap[groupUnitName] = groupUnitName
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ SecondsFormatterConstants =
|
||||
DontRoundUpLastUnit = false,
|
||||
}
|
||||
|
||||
SecondsFormatter.Abbreviation =
|
||||
SecondsFormatter.Abbreviation =
|
||||
{
|
||||
None = 1, -- seconds, minutes, hours...
|
||||
Truncate = 2, -- sec, min, hr...
|
||||
@@ -190,7 +190,7 @@ function SecondsFormatterMixin:Format(seconds, abbreviation)
|
||||
if (self:CanApproximate(seconds)) then
|
||||
local interval = math.max(minInterval, SecondsFormatter.Interval.Minutes);
|
||||
while (interval < maxInterval) do
|
||||
local nextInterval = interval + 1;
|
||||
local nextInterval = interval + 1;
|
||||
if (seconds > self:GetIntervalSeconds(nextInterval)) then
|
||||
interval = nextInterval;
|
||||
else
|
||||
|
||||
+4
-3
@@ -1089,10 +1089,11 @@ local function update_forms()
|
||||
Private.form_types[i] = i.." - "..name
|
||||
end
|
||||
end
|
||||
if Private.OptionsFrame and not tCompare(oldForms, Private.form_types) then
|
||||
Private.OptionsFrame():ReloadOptions()
|
||||
end
|
||||
end
|
||||
if Private.OptionsFrame and not tCompare(oldForms, Private.form_types) then
|
||||
Private.OptionsFrame():ReloadOptions()
|
||||
end
|
||||
|
||||
local form_frame = CreateFrame("Frame");
|
||||
form_frame:RegisterEvent("UPDATE_SHAPESHIFT_FORMS")
|
||||
form_frame:RegisterEvent("PLAYER_LOGIN")
|
||||
|
||||
Reference in New Issue
Block a user