forked from j62/ctbrec
Add setting to show confirmation dialogs for dangerous actions
This commit is contained in:
parent
eb4543709c
commit
ac3f91eb03
|
@ -89,6 +89,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
private SimpleBooleanProperty updateThumbnails;
|
private SimpleBooleanProperty updateThumbnails;
|
||||||
private SimpleBooleanProperty determineResolution;
|
private SimpleBooleanProperty determineResolution;
|
||||||
private SimpleBooleanProperty chooseStreamQuality;
|
private SimpleBooleanProperty chooseStreamQuality;
|
||||||
|
private SimpleBooleanProperty confirmationDialogs;
|
||||||
private SimpleBooleanProperty livePreviews;
|
private SimpleBooleanProperty livePreviews;
|
||||||
private SimpleBooleanProperty monitorClipboard;
|
private SimpleBooleanProperty monitorClipboard;
|
||||||
private SimpleListProperty<String> startTab;
|
private SimpleListProperty<String> startTab;
|
||||||
|
@ -180,6 +181,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
postProcessingThreads = new SimpleIntegerProperty(null, "postProcessingThreads", settings.postProcessingThreads);
|
postProcessingThreads = new SimpleIntegerProperty(null, "postProcessingThreads", settings.postProcessingThreads);
|
||||||
onlineCheckSkipsPausedModels = new SimpleBooleanProperty(null, "onlineCheckSkipsPausedModels", settings.onlineCheckSkipsPausedModels);
|
onlineCheckSkipsPausedModels = new SimpleBooleanProperty(null, "onlineCheckSkipsPausedModels", settings.onlineCheckSkipsPausedModels);
|
||||||
fastScrollSpeed = new SimpleBooleanProperty(null, "fastScrollSpeed", settings.fastScrollSpeed);
|
fastScrollSpeed = new SimpleBooleanProperty(null, "fastScrollSpeed", settings.fastScrollSpeed);
|
||||||
|
confirmationDialogs = new SimpleBooleanProperty(null, "confirmationForDangerousActions", settings.confirmationForDangerousActions);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createGui() {
|
private void createGui() {
|
||||||
|
@ -205,6 +207,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
||||||
Setting.of("Enable live previews (experimental)", livePreviews),
|
Setting.of("Enable live previews (experimental)", livePreviews),
|
||||||
Setting.of("Add models from clipboard", monitorClipboard, "Monitor clipboard for model URLs and automatically add them to the recorder").needsRestart(),
|
Setting.of("Add models from clipboard", monitorClipboard, "Monitor clipboard for model URLs and automatically add them to the recorder").needsRestart(),
|
||||||
Setting.of("Fast scroll speed", fastScrollSpeed, "Makes the thumbnail overviews scroll faster with the mouse wheel").needsRestart(),
|
Setting.of("Fast scroll speed", fastScrollSpeed, "Makes the thumbnail overviews scroll faster with the mouse wheel").needsRestart(),
|
||||||
|
Setting.of("Show confirmation dialogs", confirmationDialogs, "Show confirmation dialogs for irreversible actions"),
|
||||||
Setting.of("Start Tab", startTab),
|
Setting.of("Start Tab", startTab),
|
||||||
Setting.of("Colors (Base / Accent)", new ColorSettingsPane(Config.getInstance())).needsRestart()
|
Setting.of("Colors (Base / Accent)", new ColorSettingsPane(Config.getInstance())).needsRestart()
|
||||||
),
|
),
|
||||||
|
|
|
@ -55,6 +55,7 @@ public class Settings {
|
||||||
public String colorAccent = "#FFFFFF";
|
public String colorAccent = "#FFFFFF";
|
||||||
public String colorBase = "#FFFFFF";
|
public String colorBase = "#FFFFFF";
|
||||||
public int concurrentRecordings = 0;
|
public int concurrentRecordings = 0;
|
||||||
|
public boolean confirmationForDangerousActions = false;
|
||||||
public boolean determineResolution = false;
|
public boolean determineResolution = false;
|
||||||
public List<String> disabledSites = new ArrayList<>();
|
public List<String> disabledSites = new ArrayList<>();
|
||||||
public String downloadFilename = "${modelSanitizedName}-${localDateTime}";
|
public String downloadFilename = "${modelSanitizedName}-${localDateTime}";
|
||||||
|
|
Loading…
Reference in New Issue