Add key binding to change rooms sort order

This commit is contained in:
Joscha 2022-08-27 14:37:34 +02:00
parent c9eee7f1d0
commit ac13f4b490
3 changed files with 49 additions and 11 deletions

View file

@ -47,6 +47,15 @@ pub enum RoomStatus {
Connected(Status),
}
impl RoomStatus {
pub fn connecting_or_connected(&self) -> bool {
match self {
Self::NoRoom | Self::Stopped => false,
Self::Connecting | Self::Connected(_) => true,
}
}
}
pub struct EuphRoom {
config: config::EuphRoom,