mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
fix sliders getting stuck
This commit is contained in:
parent
840b796903
commit
0aa81933a1
@ -1148,7 +1148,7 @@ void MainWindow::on_actionManage_profiles_triggered()
|
|||||||
|
|
||||||
void MainWindow::on_GPUComboBox_currentIndexChanged(int index)
|
void MainWindow::on_GPUComboBox_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
currentGPUIndex = index;
|
/*currentGPUIndex = index;
|
||||||
// Change latest UUID and load settings for the GPU
|
// Change latest UUID and load settings for the GPU
|
||||||
QSettings settings("tuxclocker");
|
QSettings settings("tuxclocker");
|
||||||
//settings.setValue("latestUUID", types->GPUList[index].uuid);
|
//settings.setValue("latestUUID", types->GPUList[index].uuid);
|
||||||
@ -1190,7 +1190,18 @@ void MainWindow::on_GPUComboBox_currentIndexChanged(int index)
|
|||||||
loadProfileSettings();
|
loadProfileSettings();
|
||||||
// Update maximum clocks
|
// Update maximum clocks
|
||||||
curmaxmemclk->setText(1, QString::number(types->GPUList[index].maxMemClk) + "MHz");
|
curmaxmemclk->setText(1, QString::number(types->GPUList[index].maxMemClk) + "MHz");
|
||||||
curmaxclk->setText(1, QString::number(types->GPUList[index].maxCoreClk) + "MHz");
|
curmaxclk->setText(1, QString::number(types->GPUList[index].maxCoreClk) + "MHz"); */
|
||||||
|
|
||||||
|
currentGPUIndex = index;
|
||||||
|
QSettings settings("tuxclocker");
|
||||||
|
if (types->GPUList[index].gputype == types->AMDGPU) {
|
||||||
|
settings.setValue("latestUUID", types->GPUList[index].pci_id);
|
||||||
|
}
|
||||||
|
if (types->GPUList[index].gputype == types->NV) {
|
||||||
|
settings.setValue("latestUUID", types->GPUList[index].uuid);
|
||||||
|
}
|
||||||
|
types->calculateUIProperties(currentGPUIndex);
|
||||||
|
loadProfileSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user