037fad09eb0c322d3ede8e3a20fad478777d58f3 braney Tue Jul 9 14:28:33 2013 -0700 resolve newly introduced error in menu bar, notify users that hgVai doesn't work with assembly hubs, and resolve caching problems with assembly hubs (set udc cache timeout before opening hubs (otherwise the default is 0), don't open 2bit files until they are actually used) diff --git src/hg/lib/hui.c src/hg/lib/hui.c index ccab58e..a78f71c 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -339,30 +339,38 @@ } char *hUserCookie() /* Return our cookie name. */ { return cfgOptionDefault("central.cookie", "hguid"); } char *hDownloadsServer() /* get the downloads server from hg.conf or the default */ { return cfgOptionDefault("downloads.server", "hgdownload.cse.ucsc.edu"); } +void setUdcTimeout(struct cart *cart) +/* set the udc cache timeout */ +{ +int timeout = cartUsualInt(cart, "udcTimeout", 300); +if (udcCacheTimeout() < timeout) + udcSetCacheTimeout(timeout); +} + void setUdcCacheDir() /* set the path to the udc cache dir */ { udcSetDefaultDir(cfgOptionDefault("udc.cacheDir", udcDefaultDir())); } char *wrapWhiteFont(char *s) /* Write white font around s */ { static char buf[256]; safef(buf, sizeof(buf), "%s", s); return buf; }