exit file index loop when multiindexing was on

This commit is contained in:
Jonathan Jenne 2021-07-07 16:25:27 +02:00
parent 1a6d55d982
commit bb59b39773
2 changed files with 8 additions and 3 deletions

View File

@ -33,12 +33,11 @@ Public Class frmIndexFileList
CheckedListBoxControl1.Items.Add(New SplitFile With {
.FileName = oFilename,
.Exists = oFileExists
.Exists = oFileExists,
.[Date] = oImportDate
})
Next
CheckedListBoxControl1.CheckAll()
Catch ex As Exception
@ -50,6 +49,7 @@ Public Class frmIndexFileList
Public Class SplitFile
Public FileName As String
Public Exists As Boolean
Public [Date] As Date
Public Overrides Function ToString() As String
If Exists Then

View File

@ -218,6 +218,11 @@ Public Class frmStart
If File.Exists(CURRENT_WORKFILE) = True And DTACTUAL_FILES.Rows.Count > 0 Then
Open_IndexDialog()
End If
' If multi-indexing is active, all files have been indexed by now, so we can leave the loop
If MULTIINDEXING_ACTIVE Then
Exit For
End If
Next
Show()