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 cd06029 commit edea2a3
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

0 comments on commit edea2a3

Please sign in to comment.