Skip to content

Commit

Permalink
Fixed weird behavior with roomlist search
Browse files Browse the repository at this point in the history
Properly update the list when a non filtered room is clicked (in editor)
Was supposed to clear the search then select the room
Ended up only clearing the search and reselecting the top option (before clear)
  • Loading branch information
Cruor committed Oct 30, 2023
1 parent 9ba63e4 commit 21e9771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/windows/room_list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ function roomList:editorMapTargetChanged()
local selected = self:setSelection(roomNameCleaned, true, true)

if not selected then
self:setFilterText("", true)
self:setSelection(roomNameCleaned, true, true)
self:setFilterText("")
self:updateItems(getRoomItems(), roomNameCleaned, nil, true)
end
end
end
Expand Down

0 comments on commit 21e9771

Please sign in to comment.