Emu: make "Silence All Logs" dynamic

This commit is contained in:
Megamouse 2020-03-28 15:28:23 +01:00
parent d6b8213c9f
commit fc3a134e7d
7 changed files with 51 additions and 16 deletions

View file

@ -344,12 +344,7 @@ void cfg::set_entry::from_default()
void cfg::log_entry::set_map(std::map<std::string, logs::level>&& map)
{
logs::reset();
for (auto&& pair : (m_map = std::move(map)))
{
logs::set_level(pair.first, pair.second);
}
m_map = std::move(map);
}
void cfg::log_entry::from_default()