MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / clearTemplateDialog

Method clearTemplateDialog

src/override/ModuleWidget.cpp:741–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741void ModuleWidget::clearTemplateDialog() {
742 std::string message = string::f("Delete default preset for %s?", model->getFullName().c_str());
743 WeakPtr<ModuleWidget> weakThis = this;
744 async_dialog_message(message.c_str(), [=]{
745 if (weakThis)
746 weakThis->clearTemplate();
747 });
748}
749
750void ModuleWidget::saveDialog() {
751 std::string presetDir = model->getUserPresetDirectory();

Callers 1

createContextMenuMethod · 0.45

Calls 5

fFunction · 0.85
c_strMethod · 0.80
async_dialog_messageFunction · 0.50
getFullNameMethod · 0.45
clearTemplateMethod · 0.45

Tested by

no test coverage detected