Skip to content

Commit

Permalink
Fix clearing button not resetting all state
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharparam committed Dec 9, 2024
1 parent 25e29c9 commit fa52e9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scripts/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,11 @@ local function handle_signal_click(event)
state.signal_value_items.enabled = false
state.signal_value_confirm.enabled = false
end
if state.selected_slot_button == element then
state.selected_slot_button = nil
state.selected_section_index = nil
state.selected_slot = nil
end
if slot == total_count then
for _, section_element in pairs(state.section_container.children) do
if section_element.tags.section_index == section_index then
Expand Down

0 comments on commit fa52e9b

Please sign in to comment.