forked from Public/monero-gui
Merge pull request #224
ab61910Receive: tx scanner for payments matching setup (moneromooo.monero)87d0751libwalletqt: add a few daemon read access routines (moneromooo.monero)af4e49cMiddlePanel: add an optional onPageClosed callback (moneromooo.monero)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user