Skip to content

Commit

Permalink
Fix auto start mining
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Jan 13, 2022
1 parent 1f2dc45 commit 95eff02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/gui/MiningFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void MiningFrame::stopSolo() {

void MiningFrame::enableSolo() {
m_sychronized = true;
if (!m_solo_mining) {
if (!m_solo_mining && !m_miner->is_mining()) {
m_ui->m_startSolo->setEnabled(true);
m_ui->m_stopSolo->setEnabled(false);
if (Settings::instance().isMiningOnLaunchEnabled() && m_sychronized) {
Expand Down Expand Up @@ -249,9 +249,7 @@ void MiningFrame::onSynchronizationCompleted() {
m_ui->m_startSolo->setEnabled(false);
return;
}
if (!m_miner->is_mining()) {
m_ui->m_startSolo->setEnabled(true);
}
enableSolo();
}

void MiningFrame::updateBalance(quint64 _balance) {
Expand Down

0 comments on commit 95eff02

Please sign in to comment.