Picker GUI: Fix picker tool class changes not updating type list

This commit is contained in:
Jonathan G Rennison 2024-09-05 18:25:41 +01:00
parent 248846614e
commit f50144e4d8

View File

@ -473,7 +473,10 @@ void PickerWindow::PickItem(int cls_id, int id)
invalidation_flags |= PFI_TYPE;
}
this->callbacks.SetSelectedClass(cls_id);
if (this->callbacks.GetSelectedClass() != cls_id) {
this->callbacks.SetSelectedClass(cls_id);
invalidation_flags |= PFI_TYPE;
}
this->callbacks.SetSelectedType(id);
this->InvalidateData(invalidation_flags);
CloseWindowById(WC_SELECT_STATION, 0);