1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

KeyboardSettings: Use new format functions.

This commit is contained in:
asynts 2020-10-06 14:22:35 +02:00 committed by Andreas Kling
parent da9c995a8c
commit 5aadf00463

View file

@ -90,12 +90,12 @@ int main(int argc, char** argv)
JsonObject keymap_object = json.value().as_object();
ASSERT(keymap_object.has("keymap"));
String current_keymap = keymap_object.get("keymap").to_string();
dbg() << "KeyboardSettings thinks the current keymap is: " << current_keymap;
dbgln("KeyboardSettings thinks the current keymap is: {}", current_keymap);
Vector<String> character_map_files;
Core::DirIterator iterator("/res/keymaps/", Core::DirIterator::Flags::SkipDots);
if (iterator.has_error()) {
GUI::MessageBox::show(nullptr, String::format("Error on reading mapping file list: %d", iterator.error_string()), "Keyboard settings", GUI::MessageBox::Type::Error);
GUI::MessageBox::show(nullptr, String::formatted("Error on reading mapping file list: {}", iterator.error_string()), "Keyboard settings", GUI::MessageBox::Type::Error);
return -1;
}