aboutsummaryrefslogtreecommitdiff
path: root/MiddlePanel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'MiddlePanel.qml')
-rw-r--r--MiddlePanel.qml23
1 files changed, 12 insertions, 11 deletions
diff --git a/MiddlePanel.qml b/MiddlePanel.qml
index 9acf0770..c24466f3 100644
--- a/MiddlePanel.qml
+++ b/MiddlePanel.qml
@@ -32,6 +32,7 @@ import QtQuick 2.2
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.1
import QtGraphicalEffects 1.0
+import moneroComponents.Wallet 1.0
import "./pages"
@@ -39,6 +40,7 @@ Rectangle {
id: root
property Item currentView
+ property Item previousView
property bool basicMode : false
property string balanceText
property string unlockedBalanceText
@@ -56,12 +58,15 @@ Rectangle {
signal generatePaymentIdInvoked()
signal checkPaymentClicked(string address, string txid, string txkey);
- // Disable transfer page if daemon isnt fully synced
- enabled: (currentView !== transferView || appWindow.daemonSynced)
-
color: "#F0EEEE"
onCurrentViewChanged: {
+ if (previousView) {
+ if (typeof previousView.onPageClosed === "function") {
+ previousView.onPageClosed();
+ }
+ }
+ previousView = currentView
if (currentView) {
stackView.replace(currentView)
@@ -72,6 +77,10 @@ Rectangle {
}
}
+ function updateStatus(){
+ transferView.updateStatus();
+ }
+
// XXX: just for memo, to be removed
// states: [
@@ -293,14 +302,6 @@ Rectangle {
color: "#DBDBDB"
}
- Rectangle {
- id:desaturate
- color:"black"
- anchors.fill: parent
- opacity: 0.1
- visible: (root.enabled)? 0 : 1;
- }
-
/* connect "payment" click */
Connections {