Skip to content

Commit

Permalink
Populating the plugins configuration upon re-construction of the dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Jan 10, 2024
1 parent aa742ee commit 6e649f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/cc_view/src/widget/PluginConfigDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ PluginConfigDialog::PluginConfigDialog(

m_applyButton = m_ui.m_buttonBox->button(QDialogButtonBox::Ok);
m_applyButton->setText(tr("Apply"));
refreshAll();

m_allConfigWidget = new PluginConfigWrapsListWidget(this);
m_ui.m_allConfigScrollArea->setWidget(m_allConfigWidget);

refreshAll();
}

void PluginConfigDialog::accept()
Expand Down Expand Up @@ -729,9 +730,14 @@ void PluginConfigDialog::refreshSelectedPlugins(
};

m_currentSelectedList = nullptr;
assert(m_allConfigWidget != nullptr);
m_allConfigWidget->removeAll();
refreshListFunc(m_selectedSocketsWidget, PluginType::Socket);
refreshListFunc(m_selectedFiltersWidget, PluginType::Filter);
refreshListFunc(m_selectedProtocolsWidget, PluginType::Protocol);
for (auto& pluginInfoPtr : infos) {
m_allConfigWidget->addPluginConfig(pluginInfoPtr);
}
}

void PluginConfigDialog::refreshButtonBox()
Expand Down

0 comments on commit 6e649f6

Please sign in to comment.