Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Add setter to prevent standby
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier committed Mar 30, 2015
1 parent 5283e20 commit 5f2ca13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion syncany-lib/src/main/java/org/syncany/config/UserConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,13 @@ public static File getUserConfigFile() {
return userConfigFile;
}

public static boolean preventStandbyEnabled() {
public static boolean isPreventStandby() {
return preventStandby;
}

public static void setPreventStandby(boolean newPreventStandby) {
preventStandby = newPreventStandby;
}

public static SaltedSecretKey getConfigEncryptionKey() {
return configEncryptionKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private void scheduleActionRenewalTask() {
public void run() {
renewActionFile();

if (UserConfig.preventStandbyEnabled()) {
if (UserConfig.isPreventStandby()) {
preventStandby();
}
}
Expand Down

0 comments on commit 5f2ca13

Please sign in to comment.