Commit 73d52311 authored by Jean-Philippe André's avatar Jean-Philippe André

Revert "Lua dialogs: remove b_hide parameter"

This reverts commit 67875950.
parent 738ac6e1
...@@ -195,6 +195,7 @@ struct extension_dialog_t ...@@ -195,6 +195,7 @@ 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
......
...@@ -112,13 +112,14 @@ ExtensionDialog* ExtensionsDialogProvider::UpdateExtDialog( ...@@ -112,13 +112,14 @@ 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( true ); dialog->setVisible( !p_dialog->b_hide );
} }
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