From d81dbc5b5bf387580f32285584366cdca209e11f Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Fri, 9 Aug 2024 12:24:42 +0300 Subject: [PATCH] console language is better name --- src/common/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/config.cpp b/src/common/config.cpp index a5a0be71..f676ab94 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -294,7 +294,7 @@ void load(const std::filesystem::path& path) { if (data.contains("Settings")) { const toml::value& settings = data.at("Settings"); - m_language = toml::find_or(settings, "language", 1); + m_language = toml::find_or(settings, "consoleLanguage", 1); } } void save(const std::filesystem::path& path) { @@ -350,7 +350,7 @@ void save(const std::filesystem::path& path) { data["GUI"]["elfDirs"] = m_elf_viewer; data["GUI"]["recentFiles"] = m_recent_files; - data["Settings"]["language"] = m_language; + data["Settings"]["consoleLanguage"] = m_language; std::ofstream file(path, std::ios::out); file << data;