summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kacej <[email protected]>2018-04-03 18:21:43 +0200
committerMartin Kacej <[email protected]>2018-04-03 18:21:43 +0200
commit0845f2f6ed86e472a8bc67cbb966ea4a0bdbf151 (patch)
treeb7158d0f33dd79c3f3b723dc0e398dbe252b44ae
parent4af41fcbb7124d80e2116c6f7717d0cf545eed4f (diff)
more reafactoring
-rw-r--r--mobile/package/contents/ui/NetworkDetailsView.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/mobile/package/contents/ui/NetworkDetailsView.qml b/mobile/package/contents/ui/NetworkDetailsView.qml
index 6c45e45..31114b6 100644
--- a/mobile/package/contents/ui/NetworkDetailsView.qml
+++ b/mobile/package/contents/ui/NetworkDetailsView.qml
@@ -28,6 +28,7 @@ Kirigami.ScrollablePage{
property alias signal_speed: linkSpeedLabel.text
property alias ip_address: ipAddressLabel.text
property alias security: securityLabel.text
+ property var settings: ({})
property var activeMap: ({})
Column {
@@ -133,11 +134,12 @@ Kirigami.ScrollablePage{
security = d['Security type']
if (d['Connection speed'])
signal_speed = d['Connection speed']
-
- IPDetailsSection.address = activeMap["address"]
- IPDetailsSection.dns = activeMap["dns"]
- IPDetailsSection.prefix = activeMap["prefix"]
- IPDetailsSection.gateway = activeMap["gateway"]
+ if (activeMap && ipMethodComb.currentIndex == 1) {
+ IPDetailsSection.address = activeMap["address"]
+ IPDetailsSection.dns = activeMap["dns"]
+ IPDetailsSection.prefix = activeMap["prefix"]
+ IPDetailsSection.gateway = activeMap["gateway"]
+ }
}
function clearDetails() {
signal_speed = signal_strength = ip_address = 0