Skip to content

Commit

Permalink
Disable proof of balance menu option during synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Dec 27, 2018
1 parent af25198 commit eb6be42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gui/MainWindow/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ void MainWindow::synchronizationProgressUpdated(quint32 _current, quint32 _total
return;
}

m_ui->m_getBalanceProofAction->setEnabled(false);

qreal value = static_cast<qreal>(_current) / _total;
m_ui->m_syncProgress->setValue(value * m_ui->m_syncProgress->maximum());
}
Expand Down Expand Up @@ -484,7 +486,7 @@ void MainWindow::walletStateModelDataChanged(const QModelIndex& _topLeft, const
//m_ui->m_balanceLabel->setCursor(Qt::ArrowCursor);
//m_ui->m_balanceLabel->removeEventFilter(this);
//m_ui->m_balanceLabel->setToolTip(QString());
//m_ui->m_getBalanceProofAction->setEnabled(true);
m_ui->m_getBalanceProofAction->setEnabled(true);
} else {
//m_syncMovie->stop();
//m_ui->m_balanceLabel->setMovie(nullptr);
Expand Down

0 comments on commit eb6be42

Please sign in to comment.