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;
|
||||
func = function()
|
||||
PM.db.txtSize = i
|
||||
local thisID = UIDropDownMenu_GetSelectedID(ProfessionMenuOptions_TxtSizeMenu)
|
||||
UIDropDownMenu_SetSelectedID(ProfessionMenuOptions_TxtSizeMenu, thisID)
|
||||
UIDropDownMenu_SetSelectedID(ProfessionMenuOptions_TxtSizeMenu, i - 9)
|
||||
end;
|
||||
};
|
||||
UIDropDownMenu_AddButton(info);
|
||||
|
||||
Reference in New Issue
Block a user