Skip to content

Commit

Permalink
Fix #5148: Entity Inspector's help text area is not updating its cont…
Browse files Browse the repository at this point in the history
…ents when the "Show Help" option is checked.
  • Loading branch information
codereader committed Apr 20, 2020
1 parent b2abd53 commit 296203f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion radiant/ui/einspector/EntityInspector.cpp
Expand Up @@ -935,8 +935,23 @@ void EntityInspector::_onToggleShowInherited(wxCommandEvent& ev)

void EntityInspector::_onToggleShowHelpIcons(wxCommandEvent& ev)
{
bool helpIsVisible = _showHelpColumnCheckbox->IsChecked();

// Set the visibility of the help text panel
_helpText->Show(_showHelpColumnCheckbox->IsChecked());
_helpText->Show(helpIsVisible);

if (helpIsVisible)
{
// Trigger an update of the help contents (#5148)
wxDataViewItemArray selectedItems;
_keyValueTreeView->GetSelections(selectedItems);

if (selectedItems.Count() == 1)
{
wxutil::TreeModel::Row row(selectedItems.front(), *_kvStore);
updateHelpText(row);
}
}

// After showing a packed control we need to call the sizer's layout() method
_mainWidget->GetSizer()->Layout();
Expand Down

0 comments on commit 296203f

Please sign in to comment.