Commit a4e86d1e authored by Valentin Platzgummer's avatar Valentin Platzgummer

message life-time added

parent e1cd6a87
......@@ -601,6 +601,14 @@ Item {
font.family: ScreenTools.demiboldFontFamily
wrapMode: TextEdit.WordWrap
color: qgcPal.alertText
onTextChanged: {
if (lifetimeTimer.running) {
lifetimeTimer.restart()
} else {
lifetimeTimer.start() // has no effect if timer is running, hence the if clause
}
}
}
}
......@@ -644,6 +652,17 @@ Item {
}
}
}
// Message life-time timer
Timer {
id: lifetimeTimer
interval: 10000 // ms
repeat: false
onTriggered: {
criticalMmessageArea.close()
}
}
}
//-------------------------------------------------------------------------
......
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