From 78d0b1cc35ebec018bce52b3219ae136521555bb Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Fri, 14 Sep 2018 18:10:12 +0200 Subject: [PATCH] epic fix v2 --- src/settings/SettingCommands.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/settings/SettingCommands.cpp b/src/settings/SettingCommands.cpp index 8646a62a..d705cd1d 100755 --- a/src/settings/SettingCommands.cpp +++ b/src/settings/SettingCommands.cpp @@ -93,6 +93,10 @@ static CatCommand save("save", "", [](const CCommand &args) { void load_thread(const CCommand &args) { +#if not ENABLE_VISUALS + std::this_thread::sleep_for(std::chrono_literals::operator""s(1)); + settings::RVarLock.store(true); +#endif std::this_thread::sleep_for(std::chrono_literals::operator""s(1)); settings::SettingsReader loader{ settings::Manager::instance() }; if (args.ArgC() == 1) @@ -122,7 +126,9 @@ void load_thread(const CCommand &args) static CatCommand load("load", "", [](const CCommand &args) { if (!settings::RVarLock.load()) { +#if ENABLE_VISUALS settings::RVarLock.store(true); +#endif std::thread saver(load_thread, args); saver.detach(); }