From 9d4f0325e1498efbc03f734adffe85b80076f956 Mon Sep 17 00:00:00 2001 From: lotus Date: Fri, 26 Sep 2008 10:55:08 +0000 Subject: [PATCH] - removed shutdown from search page (we have it in tray now!) - fixed doubleclick action for tray git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5211 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/env/templates/simpleheader.template | 15 +++++++-------- source/de/anomic/yacy/yacyTray.java | 21 ++++++++------------- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/htroot/env/templates/simpleheader.template b/htroot/env/templates/simpleheader.template index d50a5fca7..ac6c450c8 100644 --- a/htroot/env/templates/simpleheader.template +++ b/htroot/env/templates/simpleheader.template @@ -1,13 +1,12 @@
diff --git a/source/de/anomic/yacy/yacyTray.java b/source/de/anomic/yacy/yacyTray.java index cc0822002..e689f8760 100644 --- a/source/de/anomic/yacy/yacyTray.java +++ b/source/de/anomic/yacy/yacyTray.java @@ -44,10 +44,8 @@ import de.anomic.server.serverSystem; public final class yacyTray { private static plasmaSwitchboard sb; - public static boolean isShown = false; + private static boolean isShown = false; public static boolean lockBrowserPopup = true; - - private static long t1; private static nativeTrayIcon ti; @@ -94,7 +92,7 @@ public final class yacyTray { // Quit menu.addSeparator(); - menuItem = new MenuItem("Quit"); + menuItem = new MenuItem("Shutdown"); menuItem.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { sb.terminate(); @@ -105,15 +103,12 @@ public final class yacyTray { } - private static void trayClickAction(){ //detect doubleclick - if(System.currentTimeMillis() - t1 < 500){ - if (lockBrowserPopup) { - ti.displayBalloonMessage("YaCy","Please wait until YaCy is started."); - } else { - openBrowser(""); - } - t1 = 0; //protecting against tripleclick - } else { t1 = System.currentTimeMillis(); } + private static void trayClickAction(){ //doubleclick + if (lockBrowserPopup) { + ti.displayBalloonMessage("YaCy","Please wait until YaCy is started."); + } else { + openBrowser(""); + } } private static void openBrowser(final String browserPopUpPage){