Fix MacOS build and incorrect string format in language change log

This commit is contained in:
Adam Honse 2022-11-26 23:54:55 -06:00
parent 2e02f1d782
commit a7c2b7bd2c

View file

@ -325,7 +325,7 @@ void OpenRGBSettingsPage::on_ComboBoxLanguage_currentTextChanged(const QString l
if(loaded)
{
app->installTranslator(&translator);
LOG_DEBUG("[Settings] Changed Language to %s from the %s file\n", language, file);
LOG_DEBUG("[Settings] Changed Language to %s from the %s file\n", language.toStdString().c_str(), file.toStdString().c_str());
json ui_settings = ResourceManager::get()->GetSettingsManager()->GetSettings("UserInterface");
std::string saved = ui_settings["language"].get<std::string>();