MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / onAddCustomCommand

Method onAddCustomCommand

widgets/QuickRefactorDialog.cpp:480–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480void QuickRefactorDialog::onAddCustomCommand()
481{
482 AddCustomInstructionDialog dialog(this);
483 if (dialog.exec() == QDialog::Accepted) {
484 CustomInstruction instruction = dialog.getInstruction();
485 auto &manager = CustomInstructionsManager::instance();
486
487 if (manager.saveInstruction(instruction)) {
488 loadCustomCommands();
489 m_commandsComboBox->setCurrentText(instruction.name);
490 } else {
491 QMessageBox::warning(
492 this,
493 Tr::tr("Error"),
494 Tr::tr("Failed to save custom instruction. Check logs for details."));
495 }
496 }
497}
498
499void QuickRefactorDialog::onEditCustomCommand()
500{

Callers

nothing calls this directly

Calls 2

getInstructionMethod · 0.80
saveInstructionMethod · 0.80

Tested by

no test coverage detected