diff options
author | Jonathan Bauer | 2015-08-31 17:45:16 +0200 |
---|---|---|
committer | Jonathan Bauer | 2015-08-31 17:45:16 +0200 |
commit | 447cffee62d97ee02d09c7298d40639602c91433 (patch) | |
tree | dd03098a8e817f43df95134acac0b37e18070c40 /dozentenmodul/src/main/java/org/openslx/dozmod/Config.java | |
parent | [client] slightly improved user info message when deleting a basis image in I... (diff) | |
download | tutor-module-447cffee62d97ee02d09c7298d40639602c91433.tar.gz tutor-module-447cffee62d97ee02d09c7298d40639602c91433.tar.xz tutor-module-447cffee62d97ee02d09c7298d40639602c91433.zip |
[client] MainMenu -> Einstellungen
added ConfigWindow to graphically config Proxy-Setting, MailMe stuff and FontScaling
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/Config.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/Config.java | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java b/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java index 2f8bebd4..46717110 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java @@ -179,17 +179,16 @@ public class Config { */ /** - * Query the value of 'BillOfRights' from the configuration file. + * Query the value of 'DisclaimerAgreement' from the configuration file. * - * @return true if the user already accepted bill of rights, false - * otherwise. + * @return version of the disclaimer the user accepted, 0 otherwise. */ public static int getDisclaimerAgreement() { return getInteger("disclaimer.accepted_version", 0); } /** - * Sets the value of 'BillOfRights' in the configuration file to 'value' + * Sets the value of 'DisclaimerAgreement' in the configuration file to 'value' * * @return true if it succeeded, false otherwise */ @@ -363,6 +362,14 @@ public class Config { } } + public static boolean getMailMe() { + return getBoolean("notice.mail", false); + } + + public static void setMailMe(boolean selection) { + setBoolean("notice.mail", selection); + } + /* * Generic helpers for different data types */ |