applySettings ();
connect (_traffic, SIGNAL (updated ()), SLOT (trafficUpdated ()));
- connect (_timer, SIGNAL (timeout ()), SLOT (updateDate ()));
+ connect (_timer, SIGNAL (timeout ()), SLOT (updateData ()));
updateData ();
}
_light->setColor (info.color ());
if (_settings->check (Settings::C_ShowRank)) {
- data.append (QString::number (info.level ()));
- data.append (info.level () > 1 ? tr (" points") : tr (" point"));
+ data.append (tr ("%n point(s)", "", info.level ()));
first = false;
}
#if CHECK_FOR_CONNECTION
update = ConnectionChecker::instance ()->checkConnection (_settings->check (Settings::C_UpdateOnGSM),
_settings->check (Settings::C_UpdateOnWiFi));
+ if (!_settings->check (Settings::C_UpdateWhenLocked))
+ update &= !DeviceState::instance ()->locked ();
#endif
if (update)