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.
private UserPreferences() {
}
/**
* Reload all preferences from disk.
* This is only needed if the preferences file is being directly modified on disk
* while Viking is running.
* @throws Exception
* Reload all preferences from disk. This is only needed if the preferences
* file is being directly modified on disk while Autopsy is running.
*
* @throws Exception
*/
public static void reloadFromStorage() throws Exception {
preferences.sync();
}
/**
* Saves the current preferences to storage.
* This is only needed if the preferences files are going to be copied
* to another location while Viking is running.
* @throws Exception
* Saves the current preferences to storage. This is only needed if the
* preferences files are going to be copied to another location while
* Autopsy is running.
*
* @throws Exception
*/
public static void saveToStorage() throws Exception {
preferences.flush();