This commit is contained in:
Ann Priestman 2015-09-10 13:45:24 -04:00
parent cd549922a5
commit e7f6fe01b3

View File

@ -57,22 +57,23 @@ public final class UserPreferences {
// Prevent instantiation. // Prevent instantiation.
private UserPreferences() { private UserPreferences() {
} }
/** /**
* Reload all preferences from disk. * Reload all preferences from disk. This is only needed if the preferences
* This is only needed if the preferences file is being directly modified on disk * file is being directly modified on disk while Autopsy is running.
* while Viking is running. *
* @throws Exception * @throws Exception
*/ */
public static void reloadFromStorage() throws Exception { public static void reloadFromStorage() throws Exception {
preferences.sync(); preferences.sync();
} }
/** /**
* Saves the current preferences to storage. * Saves the current preferences to storage. This is only needed if the
* This is only needed if the preferences files are going to be copied * preferences files are going to be copied to another location while
* to another location while Viking is running. * Autopsy is running.
* @throws Exception *
* @throws Exception
*/ */
public static void saveToStorage() throws Exception { public static void saveToStorage() throws Exception {
preferences.flush(); preferences.flush();