Commit 0845f2f6 authored by Martin Kacej's avatar Martin Kacej

more reafactoring

parent 4af41fcb
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment