| 451 | |
| 452 | |
| 453 | void 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 | |
| 464 | void Manager::disconnectDialog() { |