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)} />
|
||||
<box hexpand />
|
||||
<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"
|
||||
onClicked={() => network.wifi.scan()}
|
||||
onClicked={() => network.get_wifi()?.scan()}
|
||||
label=" Scan"
|
||||
/>
|
||||
</box>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue