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:
parent
da9c995a8c
commit
5aadf00463
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue