forked from I2P_Developers/i2p.i2p
Bugfix: update SnarkManager._theme each time getTheme() is called
FIXME: ensure that _theme is only read from the config file once per page load.
This commit is contained in:
@ -293,10 +293,12 @@ public class SnarkManager implements Snark.CompleteListener {
|
|||||||
updateConfig();
|
updateConfig();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Get current theme.
|
* Get current theme - reads config file on every call.
|
||||||
|
* FIXME: only read in _theme on first call for each page load.
|
||||||
* @return String -- the current theme
|
* @return String -- the current theme
|
||||||
*/
|
*/
|
||||||
public String getTheme() {
|
public String getTheme() {
|
||||||
|
_theme = _context.readConfigFile(THEME_CONFIG_FILE).getProperty(PROP_THEME, DEFAULT_THEME);
|
||||||
return _theme;
|
return _theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user