| 1723 | } |
| 1724 | |
| 1725 | void OpenRGBDialog2::SaveProfile() |
| 1726 | { |
| 1727 | ProfileManager* profile_manager = ResourceManager::get()->GetProfileManager(); |
| 1728 | |
| 1729 | if(profile_manager != NULL) |
| 1730 | { |
| 1731 | /*---------------------------------------------------------*\ |
| 1732 | | Get the profile filename from the profiles list | |
| 1733 | \*---------------------------------------------------------*/ |
| 1734 | std::string filename = ui->ProfileBox->currentText().toStdString(); |
| 1735 | |
| 1736 | /*---------------------------------------------------------*\ |
| 1737 | | Save the profile | |
| 1738 | \*---------------------------------------------------------*/ |
| 1739 | profile_manager->SaveProfile(filename); |
| 1740 | } |
| 1741 | } |
| 1742 | |
| 1743 | void OpenRGBDialog2::SaveProfileAs() |
| 1744 | { |
no test coverage detected