kdeplasma-addons: read settings before checking if exchange rates should be updated

fixes exchange rates update on startup

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-09-22 07:56:14 +03:00
parent ee21f0012a
commit 36d6b9b204

View file

@ -82,10 +82,10 @@ QalculateApplet::~QalculateApplet()
void QalculateApplet::init()
{
m_settings->readSettings();
if (m_settings->updateExchangeRatesAtStartup()) {
m_engine->updateExchangeRates();
}
m_settings->readSettings();
m_history->setHistoryItems(m_settings->historyItems());
graphicsWidget();