Fix: priority functionality not working properly (#232)

This commit is contained in:
Luis Uguina
2020-05-28 23:05:52 +10:00
committed by GitHub
parent 737377098f
commit cdf552f708
6 changed files with 109 additions and 39 deletions

View File

@@ -406,6 +406,10 @@ public class Settings implements Activity {
priority.setValue(config.getPriority());
JLabel priorityLabel = new JLabel(high_priority_support ? "Priority (High <-> Low):" : "Priority (Normal <-> Low):");
boolean showPrioritySlider = os.checkNiceAvailability();
priority.setVisible(showPrioritySlider);
priorityLabel.setVisible(showPrioritySlider);
compute_devices_constraints.weightx = 1.0 / gpus.size();
compute_devices_constraints.gridx = 0;
compute_devices_constraints.gridy++;