diff --git a/src/gui/Gui.cpp b/src/gui/Gui.cpp index f22b15d..e1ece33 100644 --- a/src/gui/Gui.cpp +++ b/src/gui/Gui.cpp @@ -3,6 +3,7 @@ /// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info. /// // clang-format off +#include #include #ifndef WX_PRECOMP #include @@ -15,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -199,7 +199,7 @@ void MySettingsFrame::UpdateCacheDirectory(const std::string& path) { template void UpdateConfig(const std::string& key, ValueType&& value) { if (fs::exists(UIData::ConfigPath)) { - toml::parse_result config = toml::parse_file(UIData::ConfigPath); + toml::table config = toml::parse_file(UIData::ConfigPath).table(); config.insert_or_assign(key, value); std::ofstream tml(UIData::ConfigPath);