aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authordsc <xmrdsc@protonmail.com>2019-03-18 00:12:51 +0100
committerdsc <xmrdsc@protonmail.com>2019-04-08 21:28:51 +0200
commit7611e826aa2be305e2bfcc22361deb4d03d76c8d (patch)
treed1fd3396a5bf336cde2e66e4e3b7d28cf000e9a9 /main.qml
parent98a7a9e66335c463b7a12d32f84bdf83ba75c925 (diff)
downloadmonzero-gui-7611e826aa2be305e2bfcc22361deb4d03d76c8d.tar.gz
monzero-gui-7611e826aa2be305e2bfcc22361deb4d03d76c8d.tar.xz
monzero-gui-7611e826aa2be305e2bfcc22361deb4d03d76c8d.zip
History redesign
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml18
1 files changed, 16 insertions, 2 deletions
diff --git a/main.qml b/main.qml
index d78f6343..36180ae3 100644
--- a/main.qml
+++ b/main.qml
@@ -528,6 +528,9 @@ ApplicationWindow {
currentWallet.history.refresh(currentWallet.currentSubaddressAccount)
timeToUnlock = currentWallet.history.minutesToUnlock
leftPanel.minutesToUnlockTxt = (timeToUnlock > 0)? (timeToUnlock == 20)? qsTr("Unlocked balance (waiting for block)") : qsTr("Unlocked balance (~%1 min)").arg(timeToUnlock) : qsTr("Unlocked balance");
+
+ if(middlePanel.state == "History")
+ middlePanel.historyView.update();
}
}
@@ -677,19 +680,28 @@ ApplicationWindow {
// history refresh is handled by walletUpdated
currentWallet.history.refresh(currentWallet.currentSubaddressAccount) // this will refresh model
currentWallet.subaddress.refresh(currentWallet.currentSubaddressAccount)
+
+ if(middlePanel.state == "History")
+ middlePanel.historyView.update();
}
function onWalletUnconfirmedMoneyReceived(txId, amount) {
// refresh history
console.log("unconfirmed money found")
- currentWallet.history.refresh(currentWallet.currentSubaddressAccount)
+ currentWallet.history.refresh(currentWallet.currentSubaddressAccount);
+
+ if(middlePanel.state == "History")
+ middlePanel.historyView.update();
}
function onWalletMoneySent(txId, amount) {
// refresh transaction history here
console.log("monero sent found")
currentWallet.refresh()
- currentWallet.history.refresh(currentWallet.currentSubaddressAccount) // this will refresh model
+ currentWallet.history.refresh(currentWallet.currentSubaddressAccount); // this will refresh model
+
+ if(middlePanel.state == "History")
+ middlePanel.historyView.update();
}
function walletsFound() {
@@ -1140,6 +1152,8 @@ ApplicationWindow {
property string daemonPassword: ""
property bool transferShowAdvanced: false
property bool receiveShowAdvanced: false
+ property bool historyShowAdvanced: false
+ property bool historyHumanDates: true
property string blockchainDataDir: ""
property bool useRemoteNode: false
property string remoteNodeAddress: ""