Add note about F1 to empty rooms list
This commit is contained in:
parent
a0f2f9500c
commit
d97dff07e4
1 changed files with 7 additions and 0 deletions
|
|
@ -168,6 +168,13 @@ impl Rooms {
|
|||
let heading = Styled::new("Rooms", heading_style).then_plain(format!(" ({})", rooms.len()));
|
||||
list.add_unsel(Text::new(heading));
|
||||
|
||||
if rooms.is_empty() {
|
||||
list.add_unsel(Text::new((
|
||||
"Press F1 for key bindings",
|
||||
ContentStyle::default().grey().italic(),
|
||||
)))
|
||||
}
|
||||
|
||||
for room in rooms {
|
||||
let bg_style = ContentStyle::default();
|
||||
let bg_sel_style = ContentStyle::default().black().on_white();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue