i2psnark: Don't save theme parameter if it has not changed.

This commit is contained in:
sponge
2010-11-26 22:46:23 +00:00
parent bbfb8583c7
commit c79f0caa67
3 changed files with 9 additions and 4 deletions

View File

@ -435,9 +435,11 @@ public class SnarkManager implements Snark.CompleteListener {
}
}
if (Theme != null) {
_config.setProperty(PROP_THEME, Theme +"");
addMessage(_("Theme changed."));
changed = true;
if(!Theme.equals(_config.getProperty(PROP_THEME))) {
_config.setProperty(PROP_THEME, Theme +"");
addMessage(_("Theme changed."));
changed = true;
}
}
if (changed) {
saveConfig();

View File

@ -1,3 +1,6 @@
2010-11-26 sponge
* i2psnark: Don't save theme parameter if it has not changed.
2010-11-26 sponge
* i2psnark: Add theme change and theme selection storage abilities.

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 10;
public final static long BUILD = 11;
/** for example "-test" */
public final static String EXTRA = "";