Allow progress bar widget to be set invisible
This commit is contained in:
@@ -65,6 +65,8 @@ void ProgressBarWidget::add()
|
|||||||
\brief animate the element and its children.
|
\brief animate the element and its children.
|
||||||
*/
|
*/
|
||||||
GUIEngine::needsUpdate.push_back(this);
|
GUIEngine::needsUpdate.push_back(this);
|
||||||
|
if (!m_is_visible)
|
||||||
|
m_element->setVisible(false);
|
||||||
} // add
|
} // add
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user