Commit 1e4ba0d9 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

[weather applet] Move setting of associatedApplicationUrls to QML

parent f39df563
......@@ -44,6 +44,7 @@ Item {
}
return panelModel.currentConditions || panelModel.currentTemperature || "";
}
Plasmoid.associatedApplicationUrls: plasmoid.nativeInterface.panelModel.creditUrl || null
Plasmoid.compactRepresentation: CompactRepresentation {
}
......
......@@ -512,13 +512,6 @@ void WeatherApplet::dataUpdated(const QString &source, const Plasma::DataEngine:
updateDetailsModel(data);
updateNoticesModel(data);
const QString creditUrl = data[QStringLiteral("Credit Url")].toString();
QList<QUrl> associatedApplicationUrls;
if (!creditUrl.isEmpty()) {
associatedApplicationUrls << QUrl(creditUrl);
}
setAssociatedApplicationUrls(associatedApplicationUrls);
m_busyTimer->stop();
if (m_timeoutNotification) {
m_timeoutNotification->close();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment