diff --git a/client/src/main/java/ctbrec/ui/CamrecApplication.java b/client/src/main/java/ctbrec/ui/CamrecApplication.java index 6312d8ee..5702e290 100644 --- a/client/src/main/java/ctbrec/ui/CamrecApplication.java +++ b/client/src/main/java/ctbrec/ui/CamrecApplication.java @@ -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); - tabPane.getTabs().add(recordingsTab); + if (config.getSettings().showRecordings) { + tabPane.getTabs().add(recordingsTab); + } if (config.getSettings().recentlyWatched) { tabPane.getTabs().add(new RecentlyWatchedTab(recorder, sites)); } diff --git a/client/src/main/java/ctbrec/ui/settings/SettingsTab.java b/client/src/main/java/ctbrec/ui/settings/SettingsTab.java index 9892abe8..26c0dbb0 100644 --- a/client/src/main/java/ctbrec/ui/settings/SettingsTab.java +++ b/client/src/main/java/ctbrec/ui/settings/SettingsTab.java @@ -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\""), diff --git a/client/src/main/java/ctbrec/ui/tabs/RecentlyWatchedTab.java b/client/src/main/java/ctbrec/ui/tabs/RecentlyWatchedTab.java index aae42a70..5e92411d 100644 --- a/client/src/main/java/ctbrec/ui/tabs/RecentlyWatchedTab.java +++ b/client/src/main/java/ctbrec/ui/tabs/RecentlyWatchedTab.java @@ -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); } } } diff --git a/common/src/main/java/ctbrec/Settings.java b/common/src/main/java/ctbrec/Settings.java index 74a6f72d..a491cf0a 100644 --- a/common/src/main/java/ctbrec/Settings.java +++ b/common/src/main/java/ctbrec/Settings.java @@ -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 showupTabs = new ArrayList<>(Arrays.asList("female"));