Skip to content

Commit

Permalink
changed "dooble" variable to "browserintegration" to be less specific
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5636 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
lotus committed Feb 22, 2009
1 parent 54c7698 commit 9519d84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions defaults/yacy.init
Expand Up @@ -897,5 +897,5 @@ disk.free = 3000
cgi.allow = false
cgi.suffixes = cgi,pl

# whether this is a version for dooble browser
dooble = false
# whether this is a version for a web browser
browserintegration = false
8 changes: 4 additions & 4 deletions source/de/anomic/yacy/yacyTray.java
Expand Up @@ -45,7 +45,7 @@ public final class yacyTray {
private static plasmaSwitchboard sb;

private static nativeTrayIcon ti;
private static boolean isDooble; // dooble browser integration
private static boolean isIntegrated; // browser integration
private static boolean isShown = false;
final private static boolean deutsch = System.getProperty("user.language","").equals("de");

Expand All @@ -54,7 +54,7 @@ public final class yacyTray {

public static void init(final plasmaSwitchboard par_sb) {
sb = par_sb;
isDooble = sb.getConfigBool("dooble", false);
isIntegrated = sb.getConfigBool("browserintegration", false);
try {
final boolean trayIcon = sb.getConfigBool("trayIcon", false);
if (trayIcon && serverSystem.isWindows) {
Expand Down Expand Up @@ -86,7 +86,7 @@ public static PopupMenu setupPopupMenu() {
PopupMenu menu = new PopupMenu();
MenuItem menuItem;

if(isDooble) return menu;
if(isIntegrated) return menu;

// YaCy Search
if(deutsch) label = "YaCy Suche";
Expand Down Expand Up @@ -150,7 +150,7 @@ private static void trayClickAction(){ //doubleclick
}

private static void openBrowser(final String browserPopUpPage){
if(isDooble) return;
if(isIntegrated) return;
// no need for https, because we are on localhost
serverSystem.openBrowser("http://localhost:" + sb.getConfig("port", "8080") + "/" + browserPopUpPage);
}
Expand Down

0 comments on commit 9519d84

Please sign in to comment.