I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 490dcc50 authored by str4d's avatar str4d
Browse files

Bugfix: update SnarkManager._theme each time getTheme() is called

FIXME: ensure that _theme is only read from the config file once per page load.
parent 8e6bade4
No related branches found
No related tags found
No related merge requests found
...@@ -293,10 +293,12 @@ public class SnarkManager implements Snark.CompleteListener { ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment