forked from minetest-mods/unified_inventory
Fix filter reset for empty search boxes
This commit is contained in:
parent
23a45b8131
commit
25c40fea6c
|
@ -204,7 +204,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
{to_player=player_name, gain = 1.0})
|
{to_player=player_name, gain = 1.0})
|
||||||
end
|
end
|
||||||
elseif fields.searchresetbutton then
|
elseif fields.searchresetbutton then
|
||||||
if ui.current_searchbox[player_name] ~= "" then
|
if ui.activefilter[player_name] ~= "" then
|
||||||
apply_new_filter(player, "", "nochange")
|
apply_new_filter(player, "", "nochange")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user