Lock wallet on inactivity

This commit is contained in:
dsc
2018-12-13 19:02:02 +01:00
parent bac833c1dd
commit 5bebf83d52
6 changed files with 135 additions and 8 deletions

View File

@@ -65,17 +65,16 @@ ColumnLayout {
onCurrentViewChanged: {
if (previousView) {
// if (typeof previousView.onPageClosed === "function") {
// previousView.onPageClosed();
// }
if (typeof previousView.onPageClosed === "function") {
previousView.onPageClosed();
}
}
previousView = currentView
if (currentView) {
stackView.replace(currentView)
// Component.onCompleted is called before wallet is initilized
// if (typeof currentView.onPageCompleted === "function") {
// currentView.onPageCompleted();
// }
if (typeof currentView.onPageCompleted === "function") {
currentView.onPageCompleted();
}
}
}