Commit 174d7e9e authored by Laurent Montel's avatar Laurent Montel 😁

Show info if we have this info :)

parent a5d71236
......@@ -388,8 +388,10 @@ Item {
tooltips.push(i18nc("winddirection windspeed (windgust)", "%1 %2 (%3)",
observationModel.windDirection, observationModel.windSpeed, observationModel.windGust));
} else {
tooltips.push(i18nc("winddirection windspeed", "%1 %2",
observationModel.windDirection, observationModel.windSpeed));
if (observationModel.windSpeed) {
tooltips.push(i18nc("winddirection windspeed", "%1 %2",
observationModel.windDirection, observationModel.windSpeed));
}
}
}
if (plasmoid.nativeInterface.pressureShownInTooltip && observationModel.pressure) {
......
Markdown is supported
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