From ea874919b9928586e9b9400a8f7f7ecfde07ce62 Mon Sep 17 00:00:00 2001 From: Cruor Date: Mon, 12 Aug 2024 17:13:40 +0200 Subject: [PATCH] Fixed room deletion not updating room list --- src/ui/windows/room_list.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/windows/room_list.lua b/src/ui/windows/room_list.lua index 08dcc10..957c5c5 100644 --- a/src/ui/windows/room_list.lua +++ b/src/ui/windows/room_list.lua @@ -184,6 +184,10 @@ function roomList:editorRoomDeleted() if firstRoom then selectRoom(firstRoom.name, false) + updateList(self, firstRoom.name) + + else + updateList(self) end end end @@ -191,6 +195,7 @@ end function roomList:editorRoomAdded() return function(list, room) selectRoom(room.name, false) + updateList(self, room.name) end end