Commit 67875950 authored by Jean-Philippe André's avatar Jean-Philippe André

Lua dialogs: remove b_hide parameter

Widgets can still be hidden though
parent 67d36fd7
...@@ -195,7 +195,6 @@ struct extension_dialog_t ...@@ -195,7 +195,6 @@ struct extension_dialog_t
DECL_ARRAY(extension_widget_t*) widgets; ///< Widgets owned by the dialog 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 bool b_kill; ///< Kill this dialog
void *p_sys; ///< Dialog private pointer void *p_sys; ///< Dialog private pointer
......
...@@ -110,14 +110,13 @@ ExtensionDialog* ExtensionsDialogProvider::UpdateExtDialog( ...@@ -110,14 +110,13 @@ ExtensionDialog* ExtensionsDialogProvider::UpdateExtDialog(
if( !p_dialog->b_kill && !dialog ) if( !p_dialog->b_kill && !dialog )
{ {
dialog = CreateExtDialog( p_dialog ); dialog = CreateExtDialog( p_dialog );
dialog->setVisible( !p_dialog->b_hide ); dialog->setVisible( true );
} }
else if( !p_dialog->b_kill && dialog ) else if( !p_dialog->b_kill && dialog )
{ {
dialog->has_lock = true; dialog->has_lock = true;
dialog->UpdateWidgets(); dialog->UpdateWidgets();
dialog->has_lock = false; dialog->has_lock = false;
dialog->setVisible( !p_dialog->b_hide );
} }
else if( p_dialog->b_kill ) 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