improv(sound): hide input section if no input device is available

This commit is contained in:
Michael Aaron Murphy 2025-07-22 06:28:42 +02:00
parent 8d353305f8
commit 98dfd3acb9
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -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(