| 1585 | } |
| 1586 | |
| 1587 | void Ui::OpenRGBDialog2::on_ButtonLoadProfile_clicked() |
| 1588 | { |
| 1589 | ProfileManager* profile_manager = ResourceManager::get()->GetProfileManager(); |
| 1590 | |
| 1591 | if(profile_manager != NULL) |
| 1592 | { |
| 1593 | /*---------------------------------------------------------*\ |
| 1594 | | Get the profile filename from the profiles list | |
| 1595 | \*---------------------------------------------------------*/ |
| 1596 | std::string profile_name = ui->ProfileBox->currentText().toStdString(); |
| 1597 | |
| 1598 | /*---------------------------------------------------------*\ |
| 1599 | | Load the profile | |
| 1600 | \*---------------------------------------------------------*/ |
| 1601 | if(profile_manager->LoadProfile(profile_name)) |
| 1602 | { |
| 1603 | for(int device = 0; device < ui->DevicesTabBar->count(); device++) |
| 1604 | { |
| 1605 | qobject_cast<OpenRGBDevicePage *>(ui->DevicesTabBar->widget(device))->UpdateDevice(); |
| 1606 | } |
| 1607 | } |
| 1608 | } |
| 1609 | } |
| 1610 | |
| 1611 | void Ui::OpenRGBDialog2::on_ButtonDeleteProfile_clicked() |
| 1612 | { |
nothing calls this directly
no test coverage detected