OSDN Git Service

kdeplasma-addons: adjust default plasmaweather visibility unit
authorIvailo Monev <xakepa10@gmail.com>
Tue, 15 Aug 2023 13:59:21 +0000 (16:59 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 15 Aug 2023 13:59:21 +0000 (16:59 +0300)
the new unit conversion class (KLength, replaced KUnitConversion some time
ago) does not accept "ml"

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kdeplasma-addons/libs/plasmaweather/weatherpopupapplet.cpp

index 950933b..c1d4e77 100644 (file)
@@ -295,7 +295,7 @@ void WeatherPopupApplet::configChanged()
         d->temperatureUnit = cfg.readEntry("temperatureUnit", "F");
         d->speedUnit = cfg.readEntry("speedUnit", "mph");
         d->pressureUnit = cfg.readEntry("pressureUnit", "inHg");
-        d->visibilityUnit = cfg.readEntry("visibilityUnit", "ml");
+        d->visibilityUnit = cfg.readEntry("visibilityUnit", "mi");
     }
     d->updateInterval = cfg.readEntry("updateInterval", 30);
     d->source = cfg.readEntry("source", "");