Skip to content

The variables selectedClassIndex and tempSelectedClassIndex seem to have unintuitive purposes #106

@himanshunaidu

Description

@himanshunaidu

One would think that tempSelectedClassIndex is used to temporarily store the value of selectedClassIndex, but its purpose is slightly different as the code suggests:

if option == .misidentified {
selectedClassIndex = index
tempSelectedClassIndex = sharedImageData.segmentedIndices[index]
isShowingClassSelectionModal = true
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions