GUI bugfix

This commit is contained in:
auria.mg 2018-03-18 20:22:50 -04:00
parent 6a963ffcc9
commit ee64a22349
2 changed files with 3 additions and 2 deletions

View File

@ -110,6 +110,9 @@ void LabelWidget::add()
if (m_scroll_speed <= 0)
m_element->setNotClipped(true);
if (!m_is_visible)
m_element->setVisible(false);
} // add
// ----------------------------------------------------------------------------

View File

@ -183,10 +183,8 @@ void TracksScreen::beforeAddingWidget()
m_laps = NULL;
m_reversed = NULL;
getWidget("lap-text")->setVisible(false);
getWidget<LabelWidget>("lap-text")->setText(L"", false);
getWidget("lap-spinner")->setVisible(false);
getWidget("reverse-text")->setVisible(false);
getWidget<LabelWidget>("reverse-text")->setText(L"", false);
getWidget("reverse")->setVisible(false);
calculateLayout();
}