mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
make sure there is only one CommandLineProcessor
This commit is contained in:
parent
a6fcb2bf36
commit
9e86378b5e
4
.idea/encodings.xml
generated
4
.idea/encodings.xml
generated
@ -2,6 +2,6 @@
|
||||
<project version="4">
|
||||
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false">
|
||||
<file url="file://$PROJECT_DIR$/ext/win-installer/InstallerConfig.nsh" charset="UTF-8" />
|
||||
<file url="PROJECT" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
||||
|
||||
</project>
|
||||
@ -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<? extends FeederCreator> 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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user