forked from I2P_Developers/i2p.i2p
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:
@ -372,8 +372,10 @@ class InternalTrayManager extends TrayManager {
|
||||
}
|
||||
PopupMenu awt = trayIcon.getPopupMenu();
|
||||
if (awt != null) {
|
||||
awt.remove(0);
|
||||
awt.insert(status, 0);
|
||||
MenuItem item = awt.getItem(0);
|
||||
String oldStatus = item.getLabel();
|
||||
if (!status.equals(oldStatus))
|
||||
item.setLabel(status);
|
||||
}
|
||||
if (_browserItem != null)
|
||||
_browserItem.setEnabled(!imminent);
|
||||
|
@ -63,7 +63,8 @@ public class Main implements RouterApp {
|
||||
*/
|
||||
private synchronized void startUp() throws Exception {
|
||||
final TrayManager trayManager;
|
||||
boolean useSwing = _appContext.getProperty(PROP_SWING, !SystemVersion.isWindows());
|
||||
boolean useSwingDefault = !(SystemVersion.isWindows() || SystemVersion.isMac());
|
||||
boolean useSwing = _appContext.getProperty(PROP_SWING, useSwingDefault);
|
||||
if (_context != null)
|
||||
trayManager = new InternalTrayManager(_context, this, useSwing);
|
||||
else
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
32
history.txt
32
history.txt
@ -1,3 +1,35 @@
|
||||
2016-05-20 zzz
|
||||
* DesktopGui:
|
||||
- Fix systray menu redraw on Mac;
|
||||
- Switch to AWT by default on Mac;
|
||||
- Hide DTG enable on Mac until we fix dock
|
||||
|
||||
2016-05-19 zzz
|
||||
* Config files, eepsite help: Add path information for OS X
|
||||
and Windows as a service. (ticket #1495)
|
||||
|
||||
2016-05-12 zzz
|
||||
* NTP:
|
||||
- Don't put random data in zeroed fields
|
||||
- Increase random data in originate timestamp from 1 byte to 2 bytes
|
||||
- Verify originate timestamp to prevent injection
|
||||
- Verify received packet size
|
||||
* SSU:
|
||||
- If configured with a hostname, bind to all v4/v6
|
||||
addresses found for that hostname.
|
||||
- Fix binding if more than one IP or host was configured.
|
||||
|
||||
2016-05-09 zzz
|
||||
* Console:
|
||||
- Fix escaping of search URLs on /confighome
|
||||
- Fix HTML error on /configui
|
||||
* DesktopGui: Add 9 new translations
|
||||
* i2psnark: Limit cases when we display tracker errors;
|
||||
include host name of tracker when we do
|
||||
|
||||
2016-05-08 zzz
|
||||
* Console: Fix UTF-8 passwords, partial fix for usernames
|
||||
|
||||
2016-05-07 zzz
|
||||
* Build:
|
||||
- Add DTG to updater
|
||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 11;
|
||||
public final static long BUILD = 12;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
Reference in New Issue
Block a user