Skip to content

Commit

Permalink
Locked down Back and Home buttons during online update process
Browse files Browse the repository at this point in the history
  • Loading branch information
erinharrington-12 committed Feb 5, 2024
1 parent 35ea245 commit 5d5cdcf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/WombatUpdateWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ void WombatUpdateWidget::refresh()

void WombatUpdateWidget::updateFinished(int, QProcess::ExitStatus exitStatus)
{

StandardWidget::enableMenuBar();

//Check to see if the update failed
if(m_updateProc->exitStatus() != QProcess::NormalExit){
ui->updateConsole->insertPlainText("\n Update Failed (Crashed): \n The update script has crashed with an error. \n Contact KIPR tech support for assistance if the problem persists \n");
Expand Down Expand Up @@ -155,6 +158,11 @@ void WombatUpdateWidget::ethernet(){
ui->selectionWidget->setVisible(false);
ui->statusLabel->setText("Update progress:");


//Disables menubar (Back and Home buttons) in StandardWidget
StandardWidget::disableMenuBar();


// Run update process
m_updateProc = new QProcess();
m_updateProc->setProcessChannelMode(QProcess::MergedChannels);
Expand Down

0 comments on commit 5d5cdcf

Please sign in to comment.