Skip to content

Commit 77b7188

Browse files
committed
Rework: Documents DataGridView needed to be disabled during an operation on checked documents. #75
Signed-off-by: Robert F. Frasca <[email protected]>
1 parent fe720fa commit 77b7188

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/PDFKeeper.Core/Presenters/MainPresenter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,7 @@ private void ProcessEachCheckedDocument(CheckedDocumentAction checkedDocumentAct
12961296
string value)
12971297
{
12981298
OnLongRunningOperationStarted();
1299+
ViewModel.DocumentsEnabled = false;
12991300
ViewModel.DocumentsProgressBarVisible = true;
13001301
ViewModel.DocumentsProgressBarMinimum = 0;
13011302
ViewModel.DocumentsProgressBarMaximum = ViewModel.CheckedDocumentIds.Count;
@@ -1383,6 +1384,7 @@ private void ProcessEachCheckedDocument(CheckedDocumentAction checkedDocumentAct
13831384
}
13841385
OnCheckedDocumentsProcessed();
13851386
ViewModel.DocumentsProgressBarVisible = false;
1387+
ViewModel.DocumentsEnabled = true;
13861388
OnLongRunningOperationFinished();
13871389
}
13881390

0 commit comments

Comments
 (0)