Commit 67875950 authored by JPeg's avatar JPeg
Browse files

Lua dialogs: remove b_hide parameter

Widgets can still be hidden though
parent 67d36fd7
......@@ -195,7 +195,6 @@ struct extension_dialog_t
DECL_ARRAY(extension_widget_t*) widgets; ///< Widgets owned by the dialog
bool b_hide; ///< Hide this dialog (!b_hide shows)
bool b_kill; ///< Kill this dialog
void *p_sys; ///< Dialog private pointer
......
......@@ -110,14 +110,13 @@ ExtensionDialog* ExtensionsDialogProvider::UpdateExtDialog(
if( !p_dialog->b_kill && !dialog )
{
dialog = CreateExtDialog( p_dialog );
dialog->setVisible( !p_dialog->b_hide );
dialog->setVisible( true );
}
else if( !p_dialog->b_kill && dialog )
{
dialog->has_lock = true;
dialog->UpdateWidgets();
dialog->has_lock = false;
dialog->setVisible( !p_dialog->b_hide );
}
else if( p_dialog->b_kill )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment