use of com.biglybt.ui.swt.config.StringListSwtParameter in project BiglyBT by BiglySoftware.
the class ViewQuickConfig method addDoneDownloadingOption.
public static void addDoneDownloadingOption(Composite comp, boolean include_script_setting) {
String[][] action_details = ConfigSectionStartShutdown.getActionDetails();
StringListSwtParameter dc = new StringListSwtParameter(comp, "On Downloading Complete Do", "ConfigView.label.stop.downcomp", null, action_details[1], action_details[0], true, null);
if (include_script_setting) {
final FileSwtParameter dc_script = new FileSwtParameter(comp, "On Downloading Complete Script", "label.script.to.run", new String[0], null);
boolean is_script = dc.getValue().startsWith("RunScript");
dc_script.setEnabled(is_script);
dc.addChangeListener(p -> dc_script.setEnabled(dc.getValue().startsWith("RunScript")));
}
}
Aggregations