Fix crash on room selection screen

This commit is contained in:
Joscha 2019-06-21 18:04:41 +00:00
parent eff5ab31ba
commit 33a4afa73e
2 changed files with 3 additions and 2 deletions

View file

@ -3,9 +3,10 @@
## Next version
- Add nick list
- Clean up code
- Fix crash on "Choose a room" screen
- Fix fetching old logs
- Rename project from "cheuph" to "bowl"
- Clean up code
## 0.1.0 (2019-04-12)

View file

@ -59,7 +59,7 @@ class ChooseRoomWidget(urwid.WidgetWrap):
def invalid_room_name(self, reason: str) -> None:
text = AT(f"Invalid room name: {reason}\n",
attributes=self._error_attrs)
style=self._error_style)
self.set_error(ATWidget(text, align=urwid.CENTER))
class SingleRoomApplication(urwid.WidgetWrap):