sidebar: don't show speakers in streams header
Center streams header instead Also fix init value
This commit is contained in:
parent
fbf2e62026
commit
e53c517829
1 changed files with 4 additions and 4 deletions
|
|
@ -83,16 +83,16 @@ export default () => {
|
||||||
|
|
||||||
if (!audio) return <NoWp />;
|
if (!audio) return <NoWp />;
|
||||||
|
|
||||||
const label = Variable("");
|
const label = Variable(`${header(audio, "streams")} • ${header(audio, "recorders")}`);
|
||||||
|
|
||||||
label.observe(
|
label.observe(
|
||||||
["streams", "speakers", "recorders"].map(k => [audio, `notify::${k}`]),
|
["streams", "recorders"].map(k => [audio, `notify::${k}`]),
|
||||||
() => `${header(audio, "streams")} • ${header(audio, "speakers")} • ${header(audio, "recorders")}`
|
() => `${header(audio, "streams")} • ${header(audio, "recorders")}`
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<box vertical className="streams" onDestroy={() => label.drop()}>
|
<box vertical className="streams" onDestroy={() => label.drop()}>
|
||||||
<box className="header-bar">
|
<box halign={Gtk.Align.CENTER} className="header-bar">
|
||||||
<label label={bind(label)} />
|
<label label={bind(label)} />
|
||||||
</box>
|
</box>
|
||||||
<stack
|
<stack
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue