Control both part name and description being unchecked

This commit is contained in:
Trevor SANDY 2024-11-12 15:34:08 +01:00
parent 6e24771b53
commit 0b128f34d9

View file

@ -1121,10 +1121,12 @@ void lcPartSelectionWidget::OptionsMenuAboutToShow()
QAction* FileNameFilter = Menu->addAction(tr("Part Name"), mPartsWidget, SLOT(ToggleFileNameFilter()));
FileNameFilter->setCheckable(true);
FileNameFilter->setChecked(ListModel->GetFileNameFilter());
FileNameFilter->setEnabled(ListModel->GetPartDescriptionFilter());
QAction* PartDescriptionFilter = Menu->addAction(tr("Part Description"), mPartsWidget, SLOT(TogglePartDescriptionFilter()));
PartDescriptionFilter->setCheckable(true);
PartDescriptionFilter->setChecked(ListModel->GetPartDescriptionFilter());
PartDescriptionFilter->setEnabled(ListModel->GetFileNameFilter());
}
void lcPartSelectionWidget::EditPartPalettes()