MCPcopy Create free account
hub / github.com/VCVRack/Rack / promptClear

Function promptClear

src/patch.cpp:106–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106static bool promptClear(std::string text) {
107 if (APP->history->isSaved())
108 return true;
109 if (APP->scene->rack->hasModules())
110 return true;
111 return osdialog_message(OSDIALOG_INFO, OSDIALOG_OK_CANCEL, text.c_str());
112}
113
114
115void Manager::save(std::string path) {

Callers 4

loadTemplateDialogMethod · 0.85
loadDialogMethod · 0.85
loadPathDialogMethod · 0.85
revertDialogMethod · 0.85

Calls 2

isSavedMethod · 0.80
hasModulesMethod · 0.80

Tested by

no test coverage detected