mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
8202 fix progress bar IllegalArgumentException
This commit is contained in:
parent
1ed5db50f6
commit
1804f4cb1c
@ -1375,8 +1375,16 @@ final class IngestJobExecutor {
|
|||||||
if (usingNetBeansGUI && !jobCancelled) {
|
if (usingNetBeansGUI && !jobCancelled) {
|
||||||
SwingUtilities.invokeLater(() -> {
|
SwingUtilities.invokeLater(() -> {
|
||||||
/*
|
/*
|
||||||
* Note that if processedFiles exceeds estimatedFilesToProcess
|
* Note that if processedFiles exceeds estimatedFilesToProcess,
|
||||||
|
* the progress bar will go into an infinte loop throwing
|
||||||
|
* IllegalArgumentExceptions in the EDT.
|
||||||
*/
|
*/
|
||||||
|
long processedFilesCapture = processedFiles;
|
||||||
|
if (processedFiles <= estimatedFilesToProcess) {
|
||||||
|
fileIngestProgressBar.progress(fileName, (int) processedFilesCapture);
|
||||||
|
} else {
|
||||||
|
fileIngestProgressBar.progress(fileName, (int) estimatedFilesToProcess);
|
||||||
|
}
|
||||||
fileIngestProgressBar.progress(fileName, (int) processedFiles);
|
fileIngestProgressBar.progress(fileName, (int) processedFiles);
|
||||||
filesInProgress.add(fileName);
|
filesInProgress.add(fileName);
|
||||||
});
|
});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#Updated by build script
|
#Updated by build script
|
||||||
#Thu, 30 Sep 2021 19:36:31 -0400
|
#Tue, 30 Nov 2021 17:19:50 -0500
|
||||||
LBL_splash_window_title=Starting Autopsy
|
LBL_splash_window_title=Starting Autopsy
|
||||||
SPLASH_HEIGHT=314
|
SPLASH_HEIGHT=314
|
||||||
SPLASH_WIDTH=538
|
SPLASH_WIDTH=538
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#Updated by build script
|
#Updated by build script
|
||||||
#Thu, 30 Sep 2021 19:36:31 -0400
|
#Tue, 30 Nov 2021 17:19:50 -0500
|
||||||
CTL_MainWindow_Title=Autopsy 4.19.2
|
CTL_MainWindow_Title=Autopsy 4.19.2
|
||||||
CTL_MainWindow_Title_No_Project=Autopsy 4.19.2
|
CTL_MainWindow_Title_No_Project=Autopsy 4.19.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user