aboutsummaryrefslogtreecommitdiff
path: root/MiddlePanel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'MiddlePanel.qml')
-rw-r--r--MiddlePanel.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/MiddlePanel.qml b/MiddlePanel.qml
index 16cc9492..0d9c8ece 100644
--- a/MiddlePanel.qml
+++ b/MiddlePanel.qml
@@ -40,6 +40,7 @@ Rectangle {
id: root
property Item currentView
+ property Item previousView
property bool basicMode : false
property string balanceText
property string unlockedBalanceText
@@ -60,6 +61,12 @@ Rectangle {
color: "#F0EEEE"
onCurrentViewChanged: {
+ if (previousView) {
+ if (typeof previousView.onPageClosed === "function") {
+ previousView.onPageClosed();
+ }
+ }
+ previousView = currentView
if (currentView) {
stackView.replace(currentView)