Log read setting from old toml outside the [Log] section (#4342)

This commit is contained in:
Niram7777 2026-05-05 01:21:28 +02:00 committed by GitHub
parent 34b35b526e
commit 6633d7252c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -545,6 +545,29 @@ bool EmulatorSettingsImpl::TransferSettings() {
#endif
}
if (og_data.contains("General")) {
const toml::value& general = og_data.at("General");
auto& s = m_log;
setFromToml(s.filter, general, "logFilter");
setFromToml(s.skip_duplicate, general, "isIdenticalLogGrouped");
Setting<std::string> logType("sync");
setFromToml(logType, general, "logType");
if (logType.get() == "sync") {
s.sync = true;
} else {
s.sync = false;
}
}
if (og_data.contains("Debug")) {
const toml::value& debug = og_data.at("Debug");
auto& s = m_log;
setFromToml(s.enable, debug, "logEnabled");
setFromToml(s.separate, debug, "isSeparateLogFilesEnabled");
}
if (og_data.contains("Input")) {
const toml::value& input = og_data.at("Input");
auto& s = m_input;