diff --git a/src/boilerplate.hpp b/src/boilerplate.hpp index 115346d..860b2a0 100644 --- a/src/boilerplate.hpp +++ b/src/boilerplate.hpp @@ -8,8 +8,6 @@ inline void addQuotes(const std::string& settingName) { Manager* manager = managerMacro; - if (!manager->quotes.empty()) manager->quotes.clear(); - if (!manager->customQuotes.empty()) manager->customQuotes.clear(); if (settingName == "custom" && getModBool(settingName)) { log::info("adding custom.txt quotes"); auto pathCustomConfigDir = (configDir / "custom.txt"); @@ -44,6 +42,9 @@ inline void addResourceQuotes() { } inline void managerReset() { + Manager* manager = managerMacro; + if (!manager->quotes.empty()) manager->quotes.clear(); + if (!manager->customQuotes.empty()) manager->customQuotes.clear(); addResourceQuotes(); addQuotes("custom"); } \ No newline at end of file