forked from Public/monero-gui
Basic view: real wallet's balance
This commit is contained in:
7
main.qml
7
main.qml
@@ -143,6 +143,8 @@ ApplicationWindow {
|
|||||||
console.log("opening wallet at: ", wallet_path);
|
console.log("opening wallet at: ", wallet_path);
|
||||||
// TODO: wallet password dialog
|
// TODO: wallet password dialog
|
||||||
wallet = walletManager.openWallet(wallet_path, "", persistentSettings.testnet);
|
wallet = walletManager.openWallet(wallet_path, "", persistentSettings.testnet);
|
||||||
|
|
||||||
|
|
||||||
if (wallet.status !== Wallet.Status_Ok) {
|
if (wallet.status !== Wallet.Status_Ok) {
|
||||||
console.log("Error opening wallet: ", wallet.errorString);
|
console.log("Error opening wallet: ", wallet.errorString);
|
||||||
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
||||||
@@ -164,8 +166,9 @@ ApplicationWindow {
|
|||||||
|
|
||||||
function onWalletUpdate() {
|
function onWalletUpdate() {
|
||||||
console.log(">>> wallet updated")
|
console.log(">>> wallet updated")
|
||||||
leftPanel.unlockedBalanceText = walletManager.displayAmount(wallet.unlockedBalance);
|
basicPanel.unlockedBalanceText = leftPanel.unlockedBalanceText = walletManager.displayAmount(wallet.unlockedBalance);
|
||||||
leftPanel.balanceText = walletManager.displayAmount(wallet.balance);
|
basicPanel.balanceText = leftPanel.balanceText = walletManager.displayAmount(wallet.balance);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onWalletRefresh() {
|
function onWalletRefresh() {
|
||||||
|
|||||||
Reference in New Issue
Block a user