feat: add in-TUI settings editors
This commit is contained in:
1 parent
8c94e126c3
commit
c95f2d17ff
47 files changed
+2574
-741
No files matched your search
@@ -52,6 +52,14 @@ pub fn get(name: &str) -> Option<RunState> {
|
||||
RUNNING.lock().ok().and_then(|map| map.get(name).cloned())
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn is_active(name: &str) -> bool {
|
||||
matches!(
|
||||
get(name),
|
||||
Some(RunState::Authenticating | RunState::Starting | RunState::Running)
|
||||
)
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn all() -> Vec<(String, RunState)> {
|
||||
RUNNING
|
||||
|
||||
Reference in new issue
Block a user