Skip to content

Commit

Permalink
Check for project preview image in png format
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 authored and nirvn committed Jan 13, 2024
1 parent 0147c41 commit e2e1175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/localfilesmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void LocalFilesModel::reloadModel()
else
{
const QString suffix = fi.suffix().toLower();
if ( suffix == QStringLiteral( "jpg" ) && items.contains( fi.completeBaseName() ) )
if ( ( suffix == QStringLiteral( "png" ) || suffix == QStringLiteral( "jpg" ) ) && items.contains( fi.completeBaseName() ) )
{
// Skip project preview images
continue;
Expand Down

1 comment on commit e2e1175

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.