sidebar: don't show speakers in streams header

Center streams header instead
Also fix init value
This commit is contained in:
2 * r + 2 * t 2025-04-09 22:22:47 +10:00
parent fbf2e62026
commit e53c517829

View file

@ -83,16 +83,16 @@ export default () => {
if (!audio) return <NoWp />;
const label = Variable("");
const label = Variable(`${header(audio, "streams")}${header(audio, "recorders")}`);
label.observe(
["streams", "speakers", "recorders"].map(k => [audio, `notify::${k}`]),
() => `${header(audio, "streams")}${header(audio, "speakers")}${header(audio, "recorders")}`
["streams", "recorders"].map(k => [audio, `notify::${k}`]),
() => `${header(audio, "streams")}${header(audio, "recorders")}`
);
return (
<box vertical className="streams" onDestroy={() => label.drop()}>
<box className="header-bar">
<box halign={Gtk.Align.CENTER} className="header-bar">
<label label={bind(label)} />
</box>
<stack