From 9e86378b5ec06384aff4879720790243f75e901c Mon Sep 17 00:00:00 2001 From: Anton Keks Date: Mon, 11 Jan 2016 22:33:21 +0200 Subject: [PATCH] make sure there is only one CommandLineProcessor --- .idea/encodings.xml | 4 ++-- src/net/azib/ipscan/config/CommandLineProcessor.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.idea/encodings.xml b/.idea/encodings.xml index eed96af8..36600593 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -2,6 +2,6 @@ + - - + \ No newline at end of file diff --git a/src/net/azib/ipscan/config/CommandLineProcessor.java b/src/net/azib/ipscan/config/CommandLineProcessor.java index e0579f18..08e29578 100644 --- a/src/net/azib/ipscan/config/CommandLineProcessor.java +++ b/src/net/azib/ipscan/config/CommandLineProcessor.java @@ -16,9 +16,9 @@ import net.azib.ipscan.exporters.Exporter; import net.azib.ipscan.exporters.ExporterRegistry; import net.azib.ipscan.feeders.FeederCreator; import net.azib.ipscan.feeders.FeederRegistry; -import net.azib.ipscan.gui.actions.ScanMenuActions; import javax.inject.Inject; +import javax.inject.Singleton; import java.io.File; /** @@ -26,6 +26,7 @@ import java.io.File; * * @author Anton Keks */ +@Singleton public class CommandLineProcessor implements CommandProcessor, StateTransitionListener { private final FeederRegistry feederRegistry; private final ExporterRegistry exporters; @@ -158,7 +159,6 @@ public class CommandLineProcessor implements CommandProcessor, StateTransitionLi // start scanning automatically if (autoStart) { - ScanMenuActions.isLoadedFromFile = false; stateMachine.transitionToNext(); } }