Make the HUD visible all the time
This commit is contained in:
parent
6ad5a760b8
commit
330484eba1
1 changed files with 5 additions and 5 deletions
|
|
@ -41,12 +41,12 @@ pub enum SessionState {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SessionState {
|
impl SessionState {
|
||||||
/// Check if there's an active or warning session
|
/// Check if the HUD should be visible
|
||||||
|
/// The HUD is always visible - it shows session info when active,
|
||||||
|
/// or a minimal bar when no session
|
||||||
pub fn is_visible(&self) -> bool {
|
pub fn is_visible(&self) -> bool {
|
||||||
matches!(
|
// Always show the HUD
|
||||||
self,
|
true
|
||||||
SessionState::Active { .. } | SessionState::Warning { .. } | SessionState::Ending { .. }
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the current session ID if any
|
/// Get the current session ID if any
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue