mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
Use 'pci_id' when finding AMD GPU UUID for combo box
This commit is contained in:
parent
2a043f4f2a
commit
cd166bd1f0
@ -965,10 +965,19 @@ void MainWindow::loadProfileSettings()
|
||||
}
|
||||
// Check which GPU index corresponds to the UUID and set the combo box selection to it
|
||||
for (int i=0; i<types->gpuCount; i++) {
|
||||
if (types->GPUList[i].uuid == latestUUID) {
|
||||
ui->GPUComboBox->setCurrentIndex(i);
|
||||
break;
|
||||
if (types->GPUList[i].gputype == types->AMDGPU) {
|
||||
if (types->GPUList[i].pci_id == latestUUID) {
|
||||
ui->GPUComboBox->setCurrentIndex(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (types->GPUList[i].gputype == types->NV) {
|
||||
if (types->GPUList[i].uuid == latestUUID) {
|
||||
ui->GPUComboBox->setCurrentIndex(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
ui->statusBar->showMessage("Profile settings loaded.", 7000);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user