weather/applet: Minimal QML clean-up
Two small code polishing commits of things that came up while doing other changes on the plasmoid:
- Port from deprecated context property
plasmoid
: Use the recommendedPlasmoid
attached property instead. - Port from javascript
var
: Useconst
orlet
where appropriate. (Some expressions got simplified without changing behavior.) And also realign a stray}
.
Test plan: nothing breaks, no new warnings in the output.