Skip to content

Commit

Permalink
#1565 Code review & cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheirerd committed Jun 5, 2023
1 parent bc03d4e commit e2e150c
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public class DirectoryPreference extends Preference
private static final String PREFERENCE_KEY_DIRECTORY_RECORDING = "directory.recording";
private static final String PREFERENCE_KEY_DIRECTORY_SCREEN_CAPTURE = "directory.screen.capture";
private static final String PREFERENCE_KEY_DIRECTORY_STREAMING = "directory.streaming";
private static final String PREFERENCE_KEY_DIRECTORY_RECORDING_LAST_BROWSED = "directory.recording.last.browsed";

private Path mDirectoryApplicationRoot;
private Path mDirectoryApplicationLogs;
Expand All @@ -68,7 +67,6 @@ public class DirectoryPreference extends Preference
private Path mDirectoryRecording;
private Path mDirectoryScreenCapture;
private Path mDirectoryStreaming;
private Path mDirectoryRecordingLastBrowsed;

/**
* Constructs this preference with an update listener
Expand Down Expand Up @@ -382,32 +380,6 @@ public void resetDirectoryScreenCapture()
notifyPreferenceUpdated();
}

/**
* Directory where the user last browsed for a recording file.
* @return last browsed directory or the default recording directory
*/
public Path getDirectoryRecordingLastBrowsed()
{
if(mDirectoryRecordingLastBrowsed == null)
{
mDirectoryRecordingLastBrowsed = getPath(PREFERENCE_KEY_DIRECTORY_RECORDING_LAST_BROWSED, getDefaultRecordingDirectory());
}

return mDirectoryRecordingLastBrowsed;
}

/**
* Sets the recording directory last browsed
* @param path to the directory
*/
public void setDirectoryRecordingLastBrowsed(Path path)
{
mDirectoryRecordingLastBrowsed = path;
mPreferences.put(PREFERENCE_KEY_DIRECTORY_RECORDING_LAST_BROWSED, path.toString());
notifyPreferenceUpdated();
}


/**
* Path to the folder for storing streaming temporary recordings
*/
Expand Down

0 comments on commit e2e150c

Please sign in to comment.