Create the OSM QtLocation plugin only once
Just loading that plugin already triggers an HTTP request, so lets only do that when really needed and even more importantly, not for every single location delegate again.
This commit is contained in:
@@ -283,6 +283,7 @@ int main(int argc, char *argv[])
|
||||
qmlRegisterSingletonType("org.kde.neochat", 1, 0, "About", [](QQmlEngine *engine, QJSEngine *) -> QJSValue {
|
||||
return engine->toScriptValue(KAboutData::applicationData());
|
||||
});
|
||||
qmlRegisterSingletonType(QUrl("qrc:/OsmLocationPlugin.qml"), "org.kde.neochat", 1, 0, "OsmLocationPlugin");
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
qRegisterMetaTypeStreamOperators<Emoji>();
|
||||
|
||||
Reference in New Issue
Block a user