improv(sound): hide input section if no input device is available
This commit is contained in:
parent
8d353305f8
commit
98dfd3acb9
1 changed files with 4 additions and 0 deletions
|
|
@ -696,6 +696,10 @@ fn input() -> Section<crate::pages::Message> {
|
|||
.title(fl!("sound-input"))
|
||||
.descriptions(descriptions)
|
||||
.view::<Page>(move |_binder, page, section| {
|
||||
if page.sources.is_empty() {
|
||||
return widget::row().into();
|
||||
}
|
||||
|
||||
let volume_control = widget::row::with_capacity(4)
|
||||
.align_y(Alignment::Center)
|
||||
.push(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue