mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-16 17:57:43 +00:00
Merge pull request #2338 from APriestman/toolName
Added tool name user preferences field
This commit is contained in:
commit
cb800df948
@ -65,6 +65,7 @@ public final class UserPreferences {
|
||||
private static final int DEFAULT_PROCESS_TIMEOUT_HR = 60;
|
||||
private static final String DEFAULT_PORT_STRING = "61616";
|
||||
private static final int DEFAULT_PORT_INT = 61616;
|
||||
private static final String APP_NAME = "AppName";
|
||||
|
||||
// Prevent instantiation.
|
||||
private UserPreferences() {
|
||||
@ -284,6 +285,23 @@ public final class UserPreferences {
|
||||
preferences.putBoolean(PROCESS_TIME_OUT_ENABLED, enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the display name for this program
|
||||
* @return Name of this program
|
||||
*/
|
||||
public static String getAppName(){
|
||||
return preferences.get(APP_NAME, "Autopsy");
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the display name for this program
|
||||
*
|
||||
* @param name Display name
|
||||
*/
|
||||
public static void setAppName(String name){
|
||||
preferences.put(APP_NAME, name);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Provides ability to convert text to hex text.
|
||||
|
Loading…
x
Reference in New Issue
Block a user