sidebar: handle no wifi card
This commit is contained in:
parent
28f94ec6a0
commit
0ab689ab98
1 changed files with 3 additions and 2 deletions
|
|
@ -119,9 +119,10 @@ export default () => {
|
||||||
<label label={bind(label)} />
|
<label label={bind(label)} />
|
||||||
<box hexpand />
|
<box hexpand />
|
||||||
<button
|
<button
|
||||||
className={bind(network.wifi, "scanning").as(s => (s ? "enabled" : ""))}
|
sensitive={network.get_wifi() ? bind(network.wifi, "scanning").as(e => !e) : false}
|
||||||
|
className={network.get_wifi() ? bind(network.wifi, "scanning").as(s => (s ? "enabled" : "")) : ""}
|
||||||
cursor="pointer"
|
cursor="pointer"
|
||||||
onClicked={() => network.wifi.scan()}
|
onClicked={() => network.get_wifi()?.scan()}
|
||||||
label=" Scan"
|
label=" Scan"
|
||||||
/>
|
/>
|
||||||
</box>
|
</box>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue