mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Fix loading Python/QML extensions on startup
This commit is contained in:
parent
0b261874cb
commit
dc3063fc63
@ -374,7 +374,7 @@ Plugins::Plugin Plugins::loadSharedLibraryPlugin(const QString &name)
|
||||
} else {
|
||||
fullPath = DataPaths::locate(DataPaths::Plugins, name);
|
||||
if (fullPath.isEmpty()) {
|
||||
qWarning() << "Plugin" << name << "not found";
|
||||
qWarning() << "Library plugin" << name << "not found";
|
||||
return Plugin();
|
||||
}
|
||||
}
|
||||
|
@ -40,9 +40,9 @@ Plugins::Plugin QmlPlugin::loadPlugin(const QString &name)
|
||||
if (QFileInfo(name).isAbsolute()) {
|
||||
fullPath = name;
|
||||
} else {
|
||||
fullPath = DataPaths::locate(DataPaths::Plugins, QSL("qml/") + name);
|
||||
fullPath = DataPaths::locate(DataPaths::Plugins, name);
|
||||
if (fullPath.isEmpty()) {
|
||||
qWarning() << "Plugin" << name << "not found";
|
||||
qWarning() << "QML plugin" << name << "not found";
|
||||
return Plugins::Plugin();
|
||||
}
|
||||
}
|
||||
|
@ -88,9 +88,9 @@ Plugins::Plugin pyfalkon_load_plugin(const QString &name)
|
||||
if (QFileInfo(name).isAbsolute()) {
|
||||
fullPath = name;
|
||||
} else {
|
||||
fullPath = DataPaths::locate(DataPaths::Plugins, QSL("python/") + name);
|
||||
fullPath = DataPaths::locate(DataPaths::Plugins, name);
|
||||
if (fullPath.isEmpty()) {
|
||||
qWarning() << "Plugin" << name << "not found";
|
||||
qWarning() << "Python plugin" << name << "not found";
|
||||
return Plugins::Plugin();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user