mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-22 08:49:58 -05:00
waffle: action center: wifi menu (without auth)
This commit is contained in:
@@ -37,21 +37,12 @@ WindowDialog {
|
||||
spacing: 0
|
||||
|
||||
model: ScriptModel {
|
||||
values: [...Network.wifiNetworks].sort((a, b) => {
|
||||
if (a.active && !b.active)
|
||||
return -1;
|
||||
if (!a.active && b.active)
|
||||
return 1;
|
||||
return b.strength - a.strength;
|
||||
})
|
||||
values: Network.friendlyWifiNetworks
|
||||
}
|
||||
delegate: WifiNetworkItem {
|
||||
required property WifiAccessPoint modelData
|
||||
wifiNetwork: modelData
|
||||
anchors {
|
||||
left: parent?.left
|
||||
right: parent?.right
|
||||
}
|
||||
width: ListView.view.width
|
||||
}
|
||||
}
|
||||
WindowDialogSeparator {}
|
||||
|
||||
Reference in New Issue
Block a user