Allow progress bar widget to be set invisible

This commit is contained in:
Benau 2018-12-17 15:52:28 +08:00
parent a3a36e33a6
commit 4eff620ee6

View File

@ -65,6 +65,8 @@ void ProgressBarWidget::add()
\brief animate the element and its children.
*/
GUIEngine::needsUpdate.push_back(this);
if (!m_is_visible)
m_element->setVisible(false);
} // add
// -----------------------------------------------------------------------------