forked from Public/monero-gui
Lock wallet on inactivity
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user