option to customize tray label (tooltip) with tray.label

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5642 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
lotus 16 years ago
parent b8c3803bfc
commit 6117e083e5

@ -474,6 +474,7 @@ browserPopUpApplication=firefox
# defines if the YaCy icon appears in the system tray on supported platforms
trayIcon=true
tray.label=YaCy
# index sharing attributes: by default, sharing is on.
# If you want to use YaCy only for local indexing (robinson mode),

@ -49,12 +49,15 @@ public final class yacyTray {
private static boolean isShown = false;
final private static boolean deutsch = System.getProperty("user.language","").equals("de");
public static String trayLabel;
public static boolean lockBrowserPopup = true;
public static void init(final plasmaSwitchboard par_sb) {
sb = par_sb;
isIntegrated = sb.getConfigBool("browserintegration", false);
trayLabel = sb.getConfig("tray.label", "YaCy");
try {
final boolean trayIcon = sb.getConfigBool("trayIcon", false);
if (trayIcon && serverSystem.isWindows) {
@ -202,7 +205,7 @@ class nativeTrayIcon {
Object arglist1[] = new Object[3];
arglist1[0] = i;
arglist1[1] = "YaCy";
arglist1[1] = yacyTray.trayLabel;
arglist1[2] = menu;
this.TrayIcon = TrayIconConstructor.newInstance(arglist1);

Loading…
Cancel
Save