Add last guard for weather selector, I hope...

This commit is contained in:
Raffson 2024-07-01 21:39:12 +02:00
parent 1df042fcc6
commit d0a1a01b12
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -18,6 +18,7 @@ class DcsPrecipitationSelector(QHBoxLayout):
for p in PydcsWeather.Preceptions:
self.selector.addItem(p.name.replace("_", ""), p)
if clouds:
self.selector.setCurrentText(clouds.precipitation.name.replace("_", ""))
self.addWidget(self.selector, 1)