MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / SaveProfile

Method SaveProfile

qt/OpenRGBDialog2/OpenRGBDialog2.cpp:1725–1741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1723}
1724
1725void 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
1743void OpenRGBDialog2::SaveProfileAs()
1744{

Callers 3

on_SaveSizeProfileMethod · 0.45
SaveProfileAsMethod · 0.45

Calls 2

GetProfileManagerMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected