Skip to content
Snippets Groups Projects
Commit 997d413e authored by Albert  Babí Oller's avatar Albert Babí Oller Committed by Sébastien Blin
Browse files

settings: remove link device timeout

Change-Id: I9dbbd779ef094d4dbcd5568bd5aae2d73dd3efe7
Gitlab: #258
parent 8ac920a7
No related branches found
No related tags found
No related merge requests found
...@@ -53,11 +53,6 @@ BaseDialog { ...@@ -53,11 +53,6 @@ BaseDialog {
timerForExport.restart() timerForExport.restart()
} }
function slotExportOnRing(){
AccountAdapter.model.exportOnRing(AccountAdapter.currentAccountId,
passwordEdit.text)
}
Timer{ Timer{
id: timerForExport id: timerForExport
...@@ -65,24 +60,12 @@ BaseDialog { ...@@ -65,24 +60,12 @@ BaseDialog {
interval: 200 interval: 200
onTriggered: { onTriggered: {
timeOut.restart() AccountAdapter.model.exportOnRing(AccountAdapter.currentAccountId,
slotExportOnRing() passwordEdit.text)
}
}
Timer {
id: timeOut
repeat: false
interval: exportTimeout
onTriggered: {
setExportPage(NameDirectory.ExportOnRingStatus.NETWORK_ERROR, "")
} }
} }
function setExportPage(status, pin) { function setExportPage(status, pin) {
timeOut.stop()
if (status === NameDirectory.ExportOnRingStatus.SUCCESS) { if (status === NameDirectory.ExportOnRingStatus.SUCCESS) {
infoLabel.success = true infoLabel.success = true
...@@ -115,8 +98,6 @@ BaseDialog { ...@@ -115,8 +98,6 @@ BaseDialog {
signal accepted signal accepted
property int exportTimeout : 20000
title: JamiStrings.addDevice title: JamiStrings.addDevice
Connections { Connections {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment