enable usability mode in launcher
Former-commit-id: 3629b03a3a
Former-commit-id: ba24f1723ecacdc724eaec4f00ff8669d3c09937
This commit is contained in:
@ -29,13 +29,16 @@ public class I2PBrowser {
|
||||
public boolean chromium = false;
|
||||
public boolean generic = false;
|
||||
public boolean chromiumFirst = false;
|
||||
public boolean usability = false;
|
||||
|
||||
private void launchFirefox(boolean privateWindow, String[] url) {
|
||||
System.out.println("I2PFirefox");
|
||||
I2PFirefox.usability = usability;
|
||||
i2pFirefox.launch(privateWindow, url);
|
||||
}
|
||||
private void launchChromium(boolean privateWindow, String[] url) {
|
||||
System.out.println("I2PChromium");
|
||||
I2PChromium.usability = usability;
|
||||
i2pChromium.launch(privateWindow, url);
|
||||
}
|
||||
private void launchGeneric(boolean privateWindow, String[] url) {
|
||||
@ -187,6 +190,9 @@ public class I2PBrowser {
|
||||
if (arg.equals("-firefox")) {
|
||||
i2pBrowser.firefox = true;
|
||||
}
|
||||
if (arg.equals("-usability")) {
|
||||
i2pBrowser.usability = true;
|
||||
}
|
||||
if (!arg.startsWith("-")) {
|
||||
visitURL.add(ValidURL(arg));
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ public class I2PChromium {
|
||||
private final String[] CHROMIUM_SEARCH_PATHS = CHROMIUM_FINDER();
|
||||
private final int DEFAULT_TIMEOUT = 200;
|
||||
private Process p = null;
|
||||
public static boolean usability = false;
|
||||
|
||||
/**
|
||||
* Construct an I2PChromium class which manages an instance of Chromium and
|
||||
|
@ -23,7 +23,7 @@ public class I2PFirefox {
|
||||
private final String[] FIREFOX_SEARCH_PATHS = FIREFOX_FINDER();
|
||||
private final int DEFAULT_TIMEOUT = 200;
|
||||
private Process p = null;
|
||||
private static boolean usability = false;
|
||||
public static boolean usability = false;
|
||||
|
||||
/**
|
||||
* Construct an I2PFirefox class which manages an instance of Firefox and
|
||||
|
Reference in New Issue
Block a user