Reset manually_cancel flag before profile run
Changed manually_cancel default to False and explicitly reset it before starting profile runs to prevent unintended early cancellation.
This commit is contained in:
@@ -29,7 +29,7 @@ Public Class frmNIHauptseite
|
|||||||
Private _fulltext As clsNIFulltext
|
Private _fulltext As clsNIFulltext
|
||||||
|
|
||||||
Private manuallyRun As Boolean = False
|
Private manuallyRun As Boolean = False
|
||||||
Private manually_cancel As Boolean = True
|
Private manually_cancel As Boolean = False
|
||||||
'#### Variablen für das Profil
|
'#### Variablen für das Profil
|
||||||
Private myNIDatatable As DataTable
|
Private myNIDatatable As DataTable
|
||||||
Private myNIArrayIndexe() As String = Nothing ' zum Speichern der Indexe
|
Private myNIArrayIndexe() As String = Nothing ' zum Speichern der Indexe
|
||||||
@@ -794,6 +794,7 @@ Public Class frmNIHauptseite
|
|||||||
Me.ProgressBar1.Value = 0
|
Me.ProgressBar1.Value = 0
|
||||||
|
|
||||||
Me.Refresh()
|
Me.Refresh()
|
||||||
|
manually_cancel = False
|
||||||
Me.startProfileDurchlauf()
|
Me.startProfileDurchlauf()
|
||||||
Else
|
Else
|
||||||
_Logger.Warn("Attention: ClassNIProfile.Profile IsNothing")
|
_Logger.Warn("Attention: ClassNIProfile.Profile IsNothing")
|
||||||
|
|||||||
Reference in New Issue
Block a user