Commit 7d24d1a1 authored by Aleksi Suomalainen's avatar Aleksi Suomalainen

[simpanel] Hide panel when sim is entered correctly.

parent b23c741b
......@@ -36,12 +36,19 @@ import MeeGo.QOfono 0.2
Component {
Rectangle {
id: simpanel
height: 240
width: root.width
color: "#313131"
opacity: 0.5
property bool _needsPin: simManager.pinRequired === OfonoSimManager.SimPin ||
property bool needsPin: simManager.pinRequired === OfonoSimManager.SimPin ||
simManager.pinRequired === OfonoSimManager.SimPuk
onNeedsPinChanged: {
if (needsPin === false) {
panel_loader.visible = false
}
}
Component.onCompleted: {
simManager.modemPath = manager.modems
}
......@@ -55,7 +62,7 @@ Component {
}
Column {
visible: _needsPin
visible: needsPin
spacing: 10
Row {
spacing: 16
......@@ -128,7 +135,7 @@ Component {
}
}
Label {
visible: !_needsPin
visible: !needsPin
text: "No pin required!"
font.pointSize: 16
}
......
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