| 484 | } |
| 485 | |
| 486 | bool PackProfile::customize(int index) |
| 487 | { |
| 488 | auto patch = getComponent(index); |
| 489 | if (!patch->isCustomizable()) |
| 490 | { |
| 491 | qDebug() << "Patch" << patch->getID() << "is not customizable"; |
| 492 | return false; |
| 493 | } |
| 494 | if(!patch->customize()) |
| 495 | { |
| 496 | qCritical() << "Patch" << patch->getID() << "could not be customized"; |
| 497 | return false; |
| 498 | } |
| 499 | invalidateLaunchProfile(); |
| 500 | scheduleSave(); |
| 501 | return true; |
| 502 | } |
| 503 | |
| 504 | bool PackProfile::revertToBase(int index) |
| 505 | { |
nothing calls this directly
no test coverage detected