Bugfix: set to selected the right gpu (not all of them)
This commit is contained in:
@@ -137,7 +137,12 @@ public class Settings implements Activity {
|
|||||||
n += 20;
|
n += 20;
|
||||||
JCheckBoxGPU gpuCheckBox = new JCheckBoxGPU(gpu);
|
JCheckBoxGPU gpuCheckBox = new JCheckBoxGPU(gpu);
|
||||||
gpuCheckBox.setToolTipText(gpu.getCudaName());
|
gpuCheckBox.setToolTipText(gpu.getCudaName());
|
||||||
|
if (gpuChecked) {
|
||||||
|
GPUDevice config_gpu = config.getGPUDevice();
|
||||||
|
if (config_gpu != null && config_gpu.getCudaName().equals(gpu.getCudaName())) {
|
||||||
gpuCheckBox.setSelected(gpuChecked);
|
gpuCheckBox.setSelected(gpuChecked);
|
||||||
|
}
|
||||||
|
}
|
||||||
gpuCheckBox.setBounds(start_label_right, n, 200, size_height_label);
|
gpuCheckBox.setBounds(start_label_right, n, 200, size_height_label);
|
||||||
gpuCheckBox.addActionListener(new GpuChangeAction());
|
gpuCheckBox.addActionListener(new GpuChangeAction());
|
||||||
parent.getContentPane().add(gpuCheckBox);
|
parent.getContentPane().add(gpuCheckBox);
|
||||||
|
|||||||
Reference in New Issue
Block a user