Skip to content

Commit

Permalink
fixing my mistake in lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Taidtuskecyh authored and Taidtuskecyh committed Sep 2, 2021
1 parent 3ef7bf9 commit 506673b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Libs/LibUIDropDownMenu/LibUIDropDownMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1267,10 +1267,10 @@ function lib:UIDropDownMenu_Refresh(frame, useValue, dropdownLevel)
if (button.iconOnly and icon and button.icon) then
lib:UIDropDownMenu_SetIconImage(icon, button.icon, button.iconInfo);
elseif ( useValue ) then
lib:LibDD:UIDropDownMenu_SetText(frame, button.value);
lib:UIDropDownMenu_SetText(frame, button.value);
icon:Hide();
else
lib:LibDD:UIDropDownMenu_SetText(frame, button:GetText());
lib:UIDropDownMenu_SetText(frame, button:GetText());
icon:Hide();
end
end
Expand All @@ -1292,7 +1292,7 @@ function lib:UIDropDownMenu_Refresh(frame, useValue, dropdownLevel)
end
end
if(somethingChecked == nil) then
lib:LibDD:UIDropDownMenu_SetText(frame, VIDEO_QUALITY_LABEL6);
lib:UIDropDownMenu_SetText(frame, VIDEO_QUALITY_LABEL6);
local icon = GetChild(frame, frame:GetName(), "Icon");
icon:Hide();
end
Expand Down Expand Up @@ -1702,7 +1702,7 @@ function lib:UIDropDownMenu_SetButtonWidth(frame, width)
frame.noResize = 1;
end

function lib:LibDD:UIDropDownMenu_SetText(frame, text)
function lib:UIDropDownMenu_SetText(frame, text)
local frameName = frame:GetName();
GetChild(frame, frameName, "Text"):SetText(text);
end
Expand All @@ -1717,7 +1717,7 @@ function lib:UIDropDownMenu_ClearAll(frame)
frame.selectedID = nil;
frame.selectedName = nil;
frame.selectedValue = nil;
lib:LibDD:UIDropDownMenu_SetText(frame, "");
lib:UIDropDownMenu_SetText(frame, "");

local button, checkImage, uncheckImage;
for i=1, L_UIDROPDOWNMENU_MAXBUTTONS do
Expand Down

0 comments on commit 506673b

Please sign in to comment.