Exit loop once match is found

This commit is contained in:
1hitsong 2024-01-12 15:52:04 -05:00 committed by Charles Ewert
parent 281b6d37f1
commit c57e7399ce

View File

@ -103,6 +103,7 @@ sub processSubtitleSelection()
for each item in m.view.fullSubtitleData for each item in m.view.fullSubtitleData
if item.index = m.view.selectedSubtitle if item.index = m.view.selectedSubtitle
m.view.previousSubtitleWasEncoded = item.IsEncoded m.view.previousSubtitleWasEncoded = item.IsEncoded
exit for
end if end if
end for end for