mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-11 10:47:26 -04:00
Merge pull request #375
192bfc7 Add "(syncing)" after balance when syncing (moneromooo.monero)
This commit is contained in:
7
main.qml
7
main.qml
@@ -221,6 +221,7 @@ ApplicationWindow {
|
||||
function connectWallet(wallet) {
|
||||
showProcessingSplash("Please wait...")
|
||||
currentWallet = wallet
|
||||
updateSyncing(false)
|
||||
|
||||
// connect handlers
|
||||
currentWallet.refreshed.connect(onWalletRefresh)
|
||||
@@ -309,6 +310,7 @@ ApplicationWindow {
|
||||
// TODO: implement onDaemonSynced or similar in wallet API and don't start refresh thread before daemon is synced
|
||||
daemonSynced = (currentWallet.connected != Wallet.ConnectionStatus_Disconnected && dCurrentBlock >= dTargetBlock)
|
||||
leftPanel.progressBar.updateProgress(dCurrentBlock,dTargetBlock);
|
||||
updateSyncing((currentWallet.connected !== Wallet.ConnectionStatus_Disconnected) && (dCurrentBlock < dTargetBlock))
|
||||
middlePanel.updateStatus();
|
||||
|
||||
// If wallet isnt connected and no daemon is running - Ask
|
||||
@@ -617,6 +619,11 @@ ApplicationWindow {
|
||||
informationPopup.open()
|
||||
}
|
||||
|
||||
function updateSyncing(syncing) {
|
||||
var text = (syncing ? qsTr("Balance (syncing)") : qsTr("Balance")) + translationManager.emptyString
|
||||
leftPanel.balanceLabelText = text
|
||||
middlePanel.balanceLabelText = text
|
||||
}
|
||||
|
||||
// blocks UI if wallet can't be opened or no connection to the daemon
|
||||
function enableUI(enable) {
|
||||
|
||||
Reference in New Issue
Block a user