Skip to content

Commit

Permalink
Fix packaged project suffix when checking for project plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed May 3, 2024
1 parent 38cbfae commit c8f1d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/pluginmanager.cpp
Expand Up @@ -440,9 +440,9 @@ QString PluginManager::findProjectPlugin( const QString &projectPath )
const QString completeBaseName = fi.completeBaseName();
QStringList possiblePluginPaths = QStringList() << QStringLiteral( "%1/%2.qml" ).arg( fi.absolutePath(), completeBaseName );
// Cloud-served projects come with a _cloud suffix, take that into account
if ( completeBaseName.endsWith( "_cloud" ) )
if ( completeBaseName.endsWith( "_qfield" ) )
{
possiblePluginPaths << QStringLiteral( "%1/%2.qml" ).arg( fi.absolutePath(), fi.completeBaseName().mid( 0, completeBaseName.size() - 6 ) );
possiblePluginPaths << QStringLiteral( "%1/%2.qml" ).arg( fi.absolutePath(), fi.completeBaseName().mid( 0, completeBaseName.size() - 7 ) );
}
for ( QString &possiblePluginPath : possiblePluginPaths )
{
Expand Down

1 comment on commit c8f1d06

@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.