Skip to content

Commit

Permalink
Switch to flush to persist preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jul 17, 2024
1 parent e9db5fd commit 8ca49be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Boolean getDef() {
public void setValue(Boolean value) {
PREFERENCES.putBoolean(key, value);
try {
PREFERENCES.sync();
PREFERENCES.flush();
} catch (BackingStoreException e) {
LogHelper.error("Exception whilst persisting preference " + this.getKey(), e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public String getDef() {
public void setValue(String value) {
PREFERENCES.put(key, value);
try {
PREFERENCES.sync();
PREFERENCES.flush();
} catch (BackingStoreException e) {
LogHelper.error("Exception whilst persisting preference " + this.getKey(), e);
}
Expand Down

0 comments on commit 8ca49be

Please sign in to comment.