Browse Source

thermostat: show a dot instead of a zero

master
rico rico 5 years ago
parent
commit
117e1eed5c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      soft/thermostat/src/zoneitem.cpp

+ 2
- 2
soft/thermostat/src/zoneitem.cpp View File

@ -47,7 +47,7 @@ void ZoneItem::refresh(void)
{ {
QString text; QString text;
if (m_temperature_value == FORCE_OFF)
if ((m_temperature_value == FORCE_OFF) || !m_available)
text += QString("-"); text += QString("-");
else else
text += QString::number(m_temperature_value); text += QString::number(m_temperature_value);
@ -64,7 +64,7 @@ void ZoneItem::refresh(void)
m_temperatureBtn.setText(text); m_temperatureBtn.setText(text);
if (m_hygro_value == FORCE_OFF)
if ((m_hygro_value == FORCE_OFF) || !m_available)
text = QString("-"); text = QString("-");
else else
text = QString::number(m_hygro_value); text = QString::number(m_hygro_value);


Loading…
Cancel
Save