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