| 695 | } |
| 696 | |
| 697 | bool PackProfile::customize(int index) |
| 698 | { |
| 699 | auto patch = getComponent(index); |
| 700 | if (!patch->isCustomizable()) |
| 701 | { |
| 702 | qDebug() << "Patch" << patch->getID() << "is not customizable"; |
| 703 | return false; |
| 704 | } |
| 705 | if(!patch->customize()) |
| 706 | { |
| 707 | qCritical() << "Patch" << patch->getID() << "could not be customized"; |
| 708 | return false; |
| 709 | } |
| 710 | invalidateLaunchProfile(); |
| 711 | scheduleSave(); |
| 712 | return true; |
| 713 | } |
| 714 | |
| 715 | bool PackProfile::revertToBase(int index) |
| 716 | { |
nothing calls this directly
no test coverage detected