Switch text of emergency call button when in a call
commit72dca63968beb9cf966f7a03f190d48cfe004e92
authorMichael Terry <michael.terry@canonical.com>
dateThu 9 Oct 2014, 08:52 (12 years ago)
parente4d1bfc
qml/Components/Lockscreen.qml+2−1
@@ -17,6 +17,7 @@
1717import QtQuick 2.0
1818import Ubuntu.Components 1.0
1919import Ubuntu.Components.Popups 1.0
20+import Ubuntu.Telephony 0.1 as Telephony
2021
2122Showable {
2223 id: root
@@ -217,7 +218,7 @@ Showable {
217218 objectName: "emergencyCallLabel"
218219 anchors.horizontalCenter: parent.horizontalCenter
219220
220− text: i18n.tr("Emergency Call")
221+ text: callManager.hasCalls ? i18n.tr("Return to Call") : i18n.tr("Emergency Call")
221222 color: "#f3f3e7"
222223 }
223224