Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDeeUx committed Feb 1, 2025
1 parent 5a2133a commit 2ccdb8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/boilerplate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
}

0 comments on commit 2ccdb8e

Please sign in to comment.