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:
OlgunR
2026-02-12 14:00:37 +01:00
parent c6c1ce4e70
commit 57e3984c26

View File

@@ -29,7 +29,7 @@ Public Class frmNIHauptseite
Private _fulltext As clsNIFulltext
Private manuallyRun As Boolean = False
Private manually_cancel As Boolean = True
Private manually_cancel As Boolean = False
'#### Variablen für das Profil
Private myNIDatatable As DataTable
Private myNIArrayIndexe() As String = Nothing ' zum Speichern der Indexe
@@ -794,6 +794,7 @@ Public Class frmNIHauptseite
Me.ProgressBar1.Value = 0
Me.Refresh()
manually_cancel = False
Me.startProfileDurchlauf()
Else
_Logger.Warn("Attention: ClassNIProfile.Profile IsNothing")