Handle -nogui option in PamWorker

PamWorker used to catalog files at startup (if a file folder input
system is used). This creates a progress dialog. Stop it appearing in
-nogui operations.
This commit is contained in:
Douglas Gillespie 2022-07-29 10:50:45 +01:00
parent 8569b6b579
commit b3f6c0e665

View File

@ -44,7 +44,10 @@ public class PamWorker<T> {
*/
public PamWorker(PamWorkWrapper<T> pamWorkWrapper, Window parentFrame, int nTextRows, String title) {
this.pamWorkWrapper = pamWorkWrapper;
if (PamGUIManager.isFX()) {
if (PamGUIManager.getGUIType() == PamGUIManager.NOGUI) {
}
else if (PamGUIManager.isFX()) {
//TODO - make a node that can be extracted here.
pamWorkProgress = new PamWorkerProgressFX();
}