I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit faa78c67 authored by hypercubus's avatar hypercubus Committed by zzz
Browse files

router console opens automatically upon first launch (i.e. if router.config is not found)

parent a5ed02eb
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@
package net.i2p.apps.systray;
import java.awt.Frame;
import java.io.File;
import snoozesoft.systray4j.SysTrayMenu;
import snoozesoft.systray4j.SysTrayMenuEvent;
......@@ -24,7 +25,7 @@ import snoozesoft.systray4j.SysTrayMenuListener;
*/
public class SysTray implements SysTrayMenuListener {
private static final SysTray INSTANCE = System.getProperty("os.name").startsWith("Windows") ? new SysTray() : null;
private static SysTray _instance = new SysTray();
private BrowserChooser _browserChooser;
private String _browserString;
......@@ -42,12 +43,20 @@ public class SysTray implements SysTrayMenuListener {
_configFile.setProperty("browser", "default");
_browserString = _configFile.getProperty("browser", "default");
if (! (new File("router.config")).exists())
openRouterConsole();
if (!System.getProperty("os.name").startsWith("Windows")) {
_instance = null;
return;
}
_sysTrayMenuIcon.addSysTrayMenuListener(this);
createSysTrayMenu();
}
public static synchronized SysTray getInstance() {
return INSTANCE;
return _instance;
}
public void hide() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment