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

Method pushRecentPath

src/patch.cpp:453–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451
452
453void Manager::pushRecentPath(std::string path) {
454 auto& recent = settings::recentPatchPaths;
455 // Remove path from recent patches (if exists)
456 recent.remove(path);
457 // Add path to top of recent patches
458 recent.push_front(path);
459 // Limit recent patches size
460 recent.resize(std::min((int) recent.size(), 20));
461}
462
463
464void Manager::disconnectDialog() {

Callers

nothing calls this directly

Calls 2

minFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected