Recordings tab optional

This commit is contained in:
Jafea7 2025-05-02 22:14:47 +10:00
parent 77baa37663
commit aecf24bbaf
4 changed files with 8 additions and 2 deletions

View File

@ -248,7 +248,9 @@ public class CamrecApplication extends Application {
var modelsTab = new RecordedTab(recorder, sites);
tabPane.getTabs().add(modelsTab);
recordingsTab = new RecordingsTab("Recordings", recorder, config, modelNotesService);
if (config.getSettings().showRecordings) {
tabPane.getTabs().add(recordingsTab);
}
if (config.getSettings().recentlyWatched) {
tabPane.getTabs().add(new RecentlyWatchedTab(recorder, sites));
}

View File

@ -111,6 +111,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
private SimpleBooleanProperty transportLayerSecurity;
private SimpleBooleanProperty fastScrollSpeed;
private SimpleBooleanProperty useHlsdl;
private SimpleBooleanProperty showRecordings;
private SimpleBooleanProperty recentlyWatched;
private SimpleFileProperty hlsdlExecutable;
private ExclusiveSelectionProperty recordLocal;
@ -197,6 +198,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
confirmationDialogs = new SimpleBooleanProperty(null, "confirmationForDangerousActions", settings.confirmationForDangerousActions);
useHlsdl = new SimpleBooleanProperty(null, "useHlsdl", settings.useHlsdl);
hlsdlExecutable = new SimpleFileProperty(null, "hlsdlExecutable", settings.hlsdlExecutable);
showRecordings = new SimpleBooleanProperty(null, "showRecordings", settings.showRecordings);
recentlyWatched = new SimpleBooleanProperty(null, "recentlyWatched", settings.recentlyWatched);
playlistRequestTimeout = new SimpleIntegerProperty(null, "playlistRequestTimeout", settings.playlistRequestTimeout);
minimizeToTray = new SimpleBooleanProperty(null, "minimizeToTray", settings.minimizeToTray);
@ -235,6 +237,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
"The overviews will still be updated, but the thumbnails won't be changed. This is useful for less powerful systems."),
Setting.of("Thumbnails cache size", new CacheSettingsPane(this, config)).needsRestart(),
Setting.of("Manually select stream quality", chooseStreamQuality, "Opens a dialog to select the video resolution before recording"),
Setting.of("Enable Recordings tab", showRecordings).needsRestart(),
Setting.of("Enable recently watched tab", recentlyWatched).needsRestart(),
Setting.of("Minimize to tray", minimizeToTray, "Removes the app from the task bar, if minimized"),
Setting.of("Start minimized", startMinimized, "Start the app minimized to the tray, automatically activates \"Minimize to tray\""),

View File

@ -294,7 +294,7 @@ public class RecentlyWatchedTab extends Tab implements ShutdownListener {
try {
saveHistory();
} catch (IOException e) {
log.error("Couldn't safe recently watched models", e);
log.error("Couldn't save recently watched models", e);
}
}
}

View File

@ -172,6 +172,7 @@ public class Settings {
public int showActiveRecordingsInTrayFontSize = 48;
public boolean showGridLinesInTables = true;
public boolean showPlayerStarting = false;
public boolean showRecordings = true;
public String showupUsername = "";
public String showupPassword = "";
public List<String> showupTabs = new ArrayList<>(Arrays.asList("female"));