Skip to content

Commit

Permalink
Fixed room deletion not updating room list
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruor committed Aug 12, 2024
1 parent f3a34a5 commit ea87491
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ui/windows/room_list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,18 @@ function roomList:editorRoomDeleted()

if firstRoom then
selectRoom(firstRoom.name, false)
updateList(self, firstRoom.name)

else
updateList(self)
end
end
end

function roomList:editorRoomAdded()
return function(list, room)
selectRoom(room.name, false)
updateList(self, room.name)
end
end

Expand Down

0 comments on commit ea87491

Please sign in to comment.