Skip to content

Commit

Permalink
Changed what refresh() looks for (zip files)
Browse files Browse the repository at this point in the history
  • Loading branch information
erinharrington-12 committed Nov 8, 2024
1 parent 64fc3c7 commit 5b79b3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WombatUpdateWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ void WombatUpdateWidget::refresh()
// Look at each directory
foreach (const QString &name, WombatUpdateWidget::mountDir.entryList(QDir::NoDotAndDotDot | QDir::Dirs))
{
// Filter out directories without updates
// Filter out directories that aren't zip files
QDir subDir = WombatUpdateWidget::mountDir;
subDir.cd(name);

if (!subDir.exists(WombatUpdateWidget::updateFileName))
if (!selectedName.contains(".zip", Qt::CaseInsensitive))
continue;

// Add directory to the list
Expand Down

0 comments on commit 5b79b3c

Please sign in to comment.