Minor header editor name sync fix

This commit is contained in:
AdAstra-LD
2022-03-19 01:12:39 +01:00
parent 3e1f40663f
commit de12924a7e

View File

@@ -1631,7 +1631,10 @@ namespace DSPRE {
}
private void updateHeaderNameShown(int thisIndex) {
disableHandlers = true;
headerListBox.Items[thisIndex] = headerListBoxNames[(ushort)currentHeader.ID];
string val = (string)(headerListBox.Items[thisIndex] = headerListBoxNames[(ushort)currentHeader.ID]);
if (eventEditorIsReady) {
eventEditorWarpHeaderListBox.Items[thisIndex] = val;
}
disableHandlers = false;
}
private void resetButton_Click(object sender, EventArgs e) {