diff --git a/src/gui/Gui.cpp b/src/gui/Gui.cpp index e1ece33..f22b15d 100644 --- a/src/gui/Gui.cpp +++ b/src/gui/Gui.cpp @@ -3,7 +3,6 @@ /// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info. /// // clang-format off -#include #include #ifndef WX_PRECOMP #include @@ -16,6 +15,7 @@ #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::table config = toml::parse_file(UIData::ConfigPath).table(); + toml::parse_result config = toml::parse_file(UIData::ConfigPath); config.insert_or_assign(key, value); std::ofstream tml(UIData::ConfigPath);