Recordings tab optional
This commit is contained in:
parent
c1350411ff
commit
bdae2e2fe0
|
@ -245,7 +245,9 @@ public class CamrecApplication extends Application {
|
||||||
var modelsTab = new RecordedTab(recorder, sites);
|
var modelsTab = new RecordedTab(recorder, sites);
|
||||||
tabPane.getTabs().add(modelsTab);
|
tabPane.getTabs().add(modelsTab);
|
||||||
recordingsTab = new RecordingsTab("Recordings", recorder, config, modelNotesService);
|
recordingsTab = new RecordingsTab("Recordings", recorder, config, modelNotesService);
|
||||||
|
if (config.getSettings().showRecordings) {
|
||||||
tabPane.getTabs().add(recordingsTab);
|
tabPane.getTabs().add(recordingsTab);
|
||||||
|
}
|
||||||
if (config.getSettings().recentlyWatched) {
|
if (config.getSettings().recentlyWatched) {
|
||||||
tabPane.getTabs().add(new RecentlyWatchedTab(recorder, sites));
|
tabPane.getTabs().add(new RecentlyWatchedTab(recorder, sites));
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,6 +115,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
private SimpleBooleanProperty transportLayerSecurity;
|
private SimpleBooleanProperty transportLayerSecurity;
|
||||||
private SimpleBooleanProperty fastScrollSpeed;
|
private SimpleBooleanProperty fastScrollSpeed;
|
||||||
private SimpleBooleanProperty useHlsdl;
|
private SimpleBooleanProperty useHlsdl;
|
||||||
|
private SimpleBooleanProperty showRecordings;
|
||||||
private SimpleBooleanProperty recentlyWatched;
|
private SimpleBooleanProperty recentlyWatched;
|
||||||
private SimpleFileProperty hlsdlExecutable;
|
private SimpleFileProperty hlsdlExecutable;
|
||||||
private ExclusiveSelectionProperty recordLocal;
|
private ExclusiveSelectionProperty recordLocal;
|
||||||
|
@ -208,6 +209,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
confirmationDialogs = new SimpleBooleanProperty(null, "confirmationForDangerousActions", settings.confirmationForDangerousActions);
|
confirmationDialogs = new SimpleBooleanProperty(null, "confirmationForDangerousActions", settings.confirmationForDangerousActions);
|
||||||
useHlsdl = new SimpleBooleanProperty(null, "useHlsdl", settings.useHlsdl);
|
useHlsdl = new SimpleBooleanProperty(null, "useHlsdl", settings.useHlsdl);
|
||||||
hlsdlExecutable = new SimpleFileProperty(null, "hlsdlExecutable", settings.hlsdlExecutable);
|
hlsdlExecutable = new SimpleFileProperty(null, "hlsdlExecutable", settings.hlsdlExecutable);
|
||||||
|
showRecordings = new SimpleBooleanProperty(null, "showRecordings", settings.showRecordings);
|
||||||
recentlyWatched = new SimpleBooleanProperty(null, "recentlyWatched", settings.recentlyWatched);
|
recentlyWatched = new SimpleBooleanProperty(null, "recentlyWatched", settings.recentlyWatched);
|
||||||
playlistRequestTimeout = new SimpleIntegerProperty(null, "playlistRequestTimeout", settings.playlistRequestTimeout);
|
playlistRequestTimeout = new SimpleIntegerProperty(null, "playlistRequestTimeout", settings.playlistRequestTimeout);
|
||||||
minimizeToTray = new SimpleBooleanProperty(null, "minimizeToTray", settings.minimizeToTray);
|
minimizeToTray = new SimpleBooleanProperty(null, "minimizeToTray", settings.minimizeToTray);
|
||||||
|
@ -249,6 +251,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."),
|
"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("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("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("Enable recently watched tab", recentlyWatched).needsRestart(),
|
||||||
Setting.of("Minimize to tray", minimizeToTray, "Removes the app from the task bar, if minimized"),
|
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\""),
|
Setting.of("Start minimized", startMinimized, "Start the app minimized to the tray, automatically activates \"Minimize to tray\""),
|
||||||
|
@ -362,8 +365,8 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
Group.of("Miscelaneous",
|
Group.of("Miscelaneous",
|
||||||
Setting.of("Config file saving delay (ms)", configSavingDelayMs,
|
Setting.of("Config file saving delay (ms)", configSavingDelayMs,
|
||||||
"Wait specified number of milliseconds before actually writing config to disk"))),
|
"Wait specified number of milliseconds before actually writing config to disk"))),
|
||||||
Category.of("Donate", (new DonateTabFx()).getContent()),
|
Category.of("Help/Cfg/Log", (new HelpTab()).getContent()),
|
||||||
Category.of("Help", (new HelpTab()).getContent()));
|
Category.of("Donate", (new DonateTabFx()).getContent()));
|
||||||
Region preferencesView = prefs.getView();
|
Region preferencesView = prefs.getView();
|
||||||
prefs.onRestartRequired(this::showRestartRequired);
|
prefs.onRestartRequired(this::showRestartRequired);
|
||||||
storage.setPreferences(prefs);
|
storage.setPreferences(prefs);
|
||||||
|
|
|
@ -294,7 +294,7 @@ public class RecentlyWatchedTab extends Tab implements ShutdownListener {
|
||||||
try {
|
try {
|
||||||
saveHistory();
|
saveHistory();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.error("Couldn't safe recently watched models", e);
|
log.error("Couldn't save recently watched models", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -184,6 +184,7 @@ public class Settings {
|
||||||
public int showActiveRecordingsInTrayFontSize = 48;
|
public int showActiveRecordingsInTrayFontSize = 48;
|
||||||
public boolean showGridLinesInTables = true;
|
public boolean showGridLinesInTables = true;
|
||||||
public boolean showPlayerStarting = false;
|
public boolean showPlayerStarting = false;
|
||||||
|
public boolean showRecordings = true;
|
||||||
public String showupUsername = "";
|
public String showupUsername = "";
|
||||||
public String showupPassword = "";
|
public String showupPassword = "";
|
||||||
public List<String> showupTabs = new ArrayList<>(Arrays.asList("female"));
|
public List<String> showupTabs = new ArrayList<>(Arrays.asList("female"));
|
||||||
|
|
Loading…
Reference in New Issue