mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Cleanup
This commit is contained in:
parent
cd549922a5
commit
e7f6fe01b3
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user