File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -740,7 +740,7 @@ local function perform_search(text)
740740 return matches
741741end
742742
743- local function calculate_order_names_checksum ()
743+ local function concat_order_names ()
744744 local orders = df .global .world .manager_orders .all
745745 if # orders == 0 then return " " end
746746
@@ -889,15 +889,15 @@ function OrdersSearchOverlay:init()
889889 self .minimized = false
890890 self .matched_indices = {}
891891 self .current_match_idx = 0
892- self .order_names_checksum = nil
892+ self .cached_order_names = nil
893893end
894894
895895function OrdersSearchOverlay :overlay_onupdate ()
896896 if self .minimized then return end
897897
898- local new_checksum = calculate_order_names_checksum ()
899- if new_checksum ~= self .order_names_checksum then
900- self .order_names_checksum = new_checksum
898+ local current_order_names = concat_order_names ()
899+ if current_order_names ~= self .cached_order_names then
900+ self .cached_order_names = current_order_names
901901 self :update_filter ()
902902 end
903903end
You can’t perform that action at this time.
0 commit comments