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