Skip to content

Commit

Permalink
Changed USB update path to use wombat-os/updateFiles/wombat_update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
erinharrington-12 committed Nov 7, 2024
1 parent 24a11e3 commit ea8f83a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/WombatUpdateWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ void WombatUpdateWidget::update()
// Check if update file exists
QDir subDir = WombatUpdateWidget::mountDir;
subDir.cd(selectedName);
if(!subDir.exists(WombatUpdateWidget::updateFileName))
QMessageBox::warning(this, "File not found", "The update file no longer exists");
QDir updateDir = subDir;
updateDir.cd("updateFiles")

if(!updateDir.exists("wombat_update.sh"))
QMessageBox::warning(this, "File not found", "The update file wombat_update.sh does not exist");
else {
// Change UI to show output
ui->updateConsole->setVisible(true);
Expand Down

0 comments on commit ea8f83a

Please sign in to comment.