text = ATSWCSNewCategoryBox:GetText() if text ~= ATSW_UNCATEGORIZED then ATSWCSAddButton_OnClick() this:SetText("") this:ClearFocus() end this:ClearFocus() ATSWCSNewCategoryBox_OnTextChanged() local text = this:GetText() this:HighlightText(0, 0) if text ~= "" then ATSWCSAddCategoryLabel:Hide() ATSWCSAddCategoryIcon:Hide() else ATSWCSAddCategoryLabel:Show() ATSWCSAddCategoryIcon:Show() end this:HighlightText() ATSWCSAddCategoryLabel:Hide() ATSWCSAddCategoryIcon:Hide() ATSWCS_OnLoad() ATSWCS_OnShow() ATSWUpdaterFrame:Hide() ATSW_SwitchingToMain = true ATSW_SwitchToFrame(ATSWFrame)