Skip to content

Commit

Permalink
Disable Pause button when user press it
Browse files Browse the repository at this point in the history
  • Loading branch information
KochynVolodymyr committed Oct 2, 2023
1 parent f3b56fb commit 08e1cd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ProgrammerGui/ProgrammerMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ void ProgrammerMain::startPressed() {
ui->toolBar->removeAction(ui->actionStart);
ui->toolBar->insertAction(m_progressAction, ui->actionStop);
ui->actionDetect->setEnabled(false);
ui->actionStop->setEnabled(true);

if (VerifyDevices()) start();

Expand All @@ -284,7 +285,10 @@ void ProgrammerMain::startPressed() {
ui->toolBar->insertAction(m_progressAction, ui->actionStart);
}

void ProgrammerMain::stopPressed() { stop = true; }
void ProgrammerMain::stopPressed() {
ui->actionStop->setEnabled(false);
stop = true;
}

void ProgrammerMain::addFile() {
auto option{QFileDialog::DontUseNativeDialog};
Expand Down

0 comments on commit 08e1cd8

Please sign in to comment.