Skip to content

Commit

Permalink
fix death overlay breaking keyboard navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Oct 31, 2023
1 parent 3810333 commit 361159a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/overlay/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ end
function overlay:close()
if self.is_open then
self.is_open = false
keyboard_navigation.set_screen(self.last_screen)
-- only reset screen if it hasn't changed in the meantime
if keyboard_navigation.get_screen() == self.layout then
keyboard_navigation.set_screen(self.last_screen)
end
if self.transition then
self.transition.close(self.layout)
end
Expand Down

0 comments on commit 361159a

Please sign in to comment.