DTG: Fix systray menu redraw on Mac;

Switch to AWT by default on Mac;
Hide DTG enable form on Mac until we fix headless override in i2prouter
This commit is contained in:
zzz
2016-05-20 14:43:15 +00:00
parent 18b61e7036
commit 101d0691f0
5 changed files with 43 additions and 5 deletions

View File

@ -202,7 +202,10 @@ public class ConfigServiceHandler extends FormHandler {
public boolean shouldShowSystray() {
return !
(RouterConsoleRunner.DAEMON_USER.equals(System.getProperty("user.name")) ||
(SystemVersion.isWindows() && _context.hasWrapper() && WrapperManager.isLaunchedAsService()));
(SystemVersion.isWindows() && _context.hasWrapper() && WrapperManager.isLaunchedAsService()) ||
// headless=true is forced in i2prouter script to prevent useless dock icon;
// must fix this first
SystemVersion.isMac());
}
/**