Refactor progress handling
probably some regressions
This commit is contained in:
@@ -990,9 +990,6 @@ local methods = {
|
||||
else
|
||||
OptionsPrivate.Private.GetTriggerDescription(data, -1, namestable)
|
||||
end
|
||||
if(OptionsPrivate.Private.CanHaveClones(data)) then
|
||||
tinsert(namestable, {" ", "|cFF00FF00"..L["Auto-cloning enabled"]})
|
||||
end
|
||||
|
||||
local hasDescription = data.desc and data.desc ~= "";
|
||||
local hasUrl = data.url and data.url ~= "";
|
||||
|
||||
@@ -39,16 +39,18 @@ local methods = {
|
||||
if mode == "one" then
|
||||
self.firstDropdown.frame:Show()
|
||||
self.secondDropDown.frame:Hide()
|
||||
self.firstDropdown.frame:SetAllPoints(self.frame)
|
||||
self.firstDropdown.frame:ClearAllPoints()
|
||||
self.firstDropdown.frame:SetPoint("TOPLEFT", self.frame)
|
||||
self.firstDropdown.frame:SetPoint("TOPRIGHT", self.frame)
|
||||
else
|
||||
local halfWidth = self.frame:GetWidth() / 2
|
||||
self.firstDropdown.frame:Show()
|
||||
self.secondDropDown.frame:Show()
|
||||
self.firstDropdown.frame:ClearAllPoints()
|
||||
self.firstDropdown.frame:SetPoint("TOPLEFT", self.frame)
|
||||
self.firstDropdown.frame:SetPoint("BOTTOMRIGHT", self.frame, "BOTTOMLEFT", halfWidth, 0)
|
||||
self.firstDropdown.frame:SetPoint("TOPRIGHT", self.frame, "TOPLEFT", halfWidth, 0)
|
||||
self.secondDropDown.frame:SetPoint("TOPLEFT", self.frame, halfWidth, 0)
|
||||
self.secondDropDown.frame:SetPoint("BOTTOMRIGHT", self.frame, "BOTTOMRIGHT")
|
||||
self.secondDropDown.frame:SetPoint("TOPRIGHT", self.frame, "TOPRIGHT")
|
||||
end
|
||||
end,
|
||||
["OnAcquire"] = function(widget)
|
||||
@@ -154,8 +156,11 @@ local methods = {
|
||||
self.firstDropdown = nil
|
||||
self.secondDropDown = nil
|
||||
end,
|
||||
["SetLabel"] = function(self, ...)
|
||||
self.firstDropdown:SetLabel(...)
|
||||
["SetLabel"] = function(self, v)
|
||||
if v == "" then
|
||||
v = " "
|
||||
end
|
||||
self.firstDropdown:SetLabel(v)
|
||||
end,
|
||||
["SetValue"] = function(self, value)
|
||||
for displayName, treeValue in pairs(self.userdata.tree) do
|
||||
|
||||
Reference in New Issue
Block a user