Browse Source

Fix compile issue on Windows by simplifying how recent patches are

removed from settings.
tags/v2.0.0
Andrew Belt 5 years ago
parent
commit
fdf85301c7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/patch.cpp

+ 1
- 1
src/patch.cpp View File

@@ -247,7 +247,7 @@ void PatchManager::revertDialog() {
void PatchManager::pushRecentPath(std::string path) {
auto& recent = settings::recentPatchPaths;
// Remove path from recent patches (if exists)
recent.erase(std::remove(recent.begin(), recent.end(), path), recent.end());
recent.remove(path);
// Add path to top of recent patches
recent.push_front(path);
// Limit recent patches size


Loading…
Cancel
Save