fix(options): use SetSelectedID so the text-size dropdown selection sticks
release / release (push) Successful in 3s
release / release (push) Successful in 3s
This commit is contained in:
@@ -150,8 +150,7 @@ PM:CreateOptionsUI()
|
|||||||
text = i;
|
text = i;
|
||||||
func = function()
|
func = function()
|
||||||
PM.db.txtSize = i
|
PM.db.txtSize = i
|
||||||
local thisID = UIDropDownMenu_GetSelectedID(ProfessionMenuOptions_TxtSizeMenu)
|
UIDropDownMenu_SetSelectedID(ProfessionMenuOptions_TxtSizeMenu, i - 9)
|
||||||
UIDropDownMenu_SetSelectedID(ProfessionMenuOptions_TxtSizeMenu, thisID)
|
|
||||||
end;
|
end;
|
||||||
};
|
};
|
||||||
UIDropDownMenu_AddButton(info);
|
UIDropDownMenu_AddButton(info);
|
||||||
|
|||||||
Reference in New Issue
Block a user