forked from j62/ctbrec
Disable post-processing steps in remote mode
This commit is contained in:
parent
f575958fe9
commit
9ed4ded258
|
@ -98,6 +98,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
private ExclusiveSelectionProperty recordLocal;
|
private ExclusiveSelectionProperty recordLocal;
|
||||||
private SimpleIntegerProperty postProcessingThreads;
|
private SimpleIntegerProperty postProcessingThreads;
|
||||||
private IgnoreList ignoreList;
|
private IgnoreList ignoreList;
|
||||||
|
private PostProcessingStepPanel postProcessingStepPanel;
|
||||||
|
|
||||||
public SettingsTab(List<Site> sites, Recorder recorder) {
|
public SettingsTab(List<Site> sites, Recorder recorder) {
|
||||||
this.sites = sites;
|
this.sites = sites;
|
||||||
|
@ -148,6 +149,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createGui() {
|
private void createGui() {
|
||||||
|
postProcessingStepPanel = new PostProcessingStepPanel(config);
|
||||||
ignoreList = new IgnoreList(sites);
|
ignoreList = new IgnoreList(sites);
|
||||||
List<Category> siteCategories = new ArrayList<>();
|
List<Category> siteCategories = new ArrayList<>();
|
||||||
for (Site site : sites) {
|
for (Site site : sites) {
|
||||||
|
@ -201,7 +203,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
Category.of("Post-Processing",
|
Category.of("Post-Processing",
|
||||||
Group.of("Post-Processing",
|
Group.of("Post-Processing",
|
||||||
Setting.of("Threads", postProcessingThreads),
|
Setting.of("Threads", postProcessingThreads),
|
||||||
Setting.of("Steps", new PostProcessingStepPanel(config))
|
Setting.of("Steps", postProcessingStepPanel)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
Category.of("Events & Actions", new ActionSettingsPanel(recorder)),
|
Category.of("Events & Actions", new ActionSettingsPanel(recorder)),
|
||||||
|
@ -238,6 +240,8 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
prefs.getSetting("removeRecordingAfterPostProcessing").ifPresent(s -> bindEnabledProperty(s, recordLocal.not()));
|
prefs.getSetting("removeRecordingAfterPostProcessing").ifPresent(s -> bindEnabledProperty(s, recordLocal.not()));
|
||||||
prefs.getSetting("minimumLengthInSeconds").ifPresent(s -> bindEnabledProperty(s, recordLocal.not()));
|
prefs.getSetting("minimumLengthInSeconds").ifPresent(s -> bindEnabledProperty(s, recordLocal.not()));
|
||||||
prefs.getSetting("concurrentRecordings").ifPresent(s -> bindEnabledProperty(s, recordLocal.not()));
|
prefs.getSetting("concurrentRecordings").ifPresent(s -> bindEnabledProperty(s, recordLocal.not()));
|
||||||
|
prefs.getSetting("concurrentRecordings").ifPresent(s -> bindEnabledProperty(s, recordLocal.not()));
|
||||||
|
postProcessingStepPanel.disableProperty().bind(recordLocal.not());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void bindEnabledProperty(Setting s, BooleanExpression bindTo) {
|
private void bindEnabledProperty(Setting s, BooleanExpression bindTo) {
|
||||||
|
|
Loading…
Reference in New Issue