mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-23 11:15:00 +00:00
Fixing up after rebase
This commit is contained in:
parent
bb9e4ee0b9
commit
30bf765b75
1 changed files with 0 additions and 17 deletions
17
main.qml
17
main.qml
|
@ -384,23 +384,6 @@ ApplicationWindow {
|
||||||
function onWalletUpdate() {
|
function onWalletUpdate() {
|
||||||
console.log(">>> wallet updated")
|
console.log(">>> wallet updated")
|
||||||
updateBalance();
|
updateBalance();
|
||||||
var unlockedBalance = walletManager.displayAmount(currentWallet.unlockedBalance);
|
|
||||||
var unlockedBalanceFloat = parseFloat(unlockedBalance);
|
|
||||||
|
|
||||||
if(unlockedBalanceFloat === 0){
|
|
||||||
// no available funds; hide the 'unlocked balance' label
|
|
||||||
leftPanel.unlockedBalanceVisible = false
|
|
||||||
leftPanel.unlockedBalanceLabelVisible = false
|
|
||||||
} else {
|
|
||||||
leftPanel.unlockedBalanceVisible = true
|
|
||||||
leftPanel.unlockedBalanceLabelVisible = true
|
|
||||||
leftPanel.unlockedBalanceText.text = unlockedBalance
|
|
||||||
}
|
|
||||||
|
|
||||||
// showing middlePanel unlockedBalance regardless
|
|
||||||
middlePanel.unlockedBalanceText = leftPanel.unlockedBalanceText = unlockedBalance;
|
|
||||||
middlePanel.balanceText = leftPanel.balanceText = walletManager.displayAmount(currentWallet.balance);
|
|
||||||
|
|
||||||
// Update history if new block found since last update
|
// Update history if new block found since last update
|
||||||
if(foundNewBlock) {
|
if(foundNewBlock) {
|
||||||
foundNewBlock = false;
|
foundNewBlock = false;
|
||||||
|
|
Loading…
Reference in a new issue