mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
quicksettings/hotspot: add SSID in status
This commit is contained in:
parent
c0e2c4eb22
commit
79998ab544
1 changed files with 7 additions and 14 deletions
|
|
@ -13,10 +13,16 @@ MobileShell.QuickSetting {
|
|||
id: nmHandler
|
||||
}
|
||||
|
||||
PlasmaNM.WirelessStatus {
|
||||
id: wirelessStatus
|
||||
}
|
||||
|
||||
|
||||
text: i18n("Hotspot")
|
||||
icon: "network-wireless-hotspot"
|
||||
|
||||
enabled: false
|
||||
enabled: wirelessStatus.hotspotSSID.length !== 0
|
||||
status: enabled ? wirelessStatus.hotspotSSID : ""
|
||||
|
||||
function toggle() {
|
||||
if (!enabled) {
|
||||
|
|
@ -25,17 +31,4 @@ MobileShell.QuickSetting {
|
|||
nmHandler.stopHotspot();
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: nmHandler
|
||||
|
||||
function onHotspotCreated() {
|
||||
root.enabled = true;
|
||||
}
|
||||
|
||||
function onHotspotDisabled() {
|
||||
root.enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue