small bugfix in item search
This commit is contained in:
@@ -494,6 +494,10 @@ function public.set_item(item_id)
|
||||
end
|
||||
end
|
||||
|
||||
function public.item_set()
|
||||
return private.item_id ~= nil
|
||||
end
|
||||
|
||||
function public.update_item()
|
||||
if private.item_id and not AuxItemSearchFrameItemItemInputBox:IsVisible() then
|
||||
local info = { GetItemInfo(private.item_id) }
|
||||
|
||||
@@ -65,9 +65,11 @@
|
||||
if this.selector.selected_value() then
|
||||
Aux.item_search_frame.set_item(this.selector.selected_value())
|
||||
end
|
||||
this:Hide()
|
||||
this.selector.clear()
|
||||
Aux.item_search_frame.update_item()
|
||||
if Aux.item_search_frame.item_set() then
|
||||
this:Hide()
|
||||
this.selector.clear()
|
||||
Aux.item_search_frame.update_item()
|
||||
end
|
||||
</OnEditFocusLost>
|
||||
<OnEscapePressed>
|
||||
this.selector.clear()
|
||||
|
||||
Reference in New Issue
Block a user