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

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

No files matched your search

@@ -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();
+3
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.
@@ -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 = "";