summaryrefslogtreecommitdiff
path: root/Userland/Applications/KeyboardMapper/main.cpp
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-01-30 22:30:46 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-01 09:54:32 +0100
commitd9e7e13fb23f1d904c439ded253c2be14f82c86b (patch)
tree41a0d7fb2aca55d1e7706de55fd5a3c62b5c2664 /Userland/Applications/KeyboardMapper/main.cpp
parentdd4e670f72c44a59b40ffb6af72751606fadd680 (diff)
downloadserenity-d9e7e13fb23f1d904c439ded253c2be14f82c86b.zip
KeyboardMapper: Without arguments, load current keymap
Diffstat (limited to 'Userland/Applications/KeyboardMapper/main.cpp')
-rw-r--r--Userland/Applications/KeyboardMapper/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/KeyboardMapper/main.cpp b/Userland/Applications/KeyboardMapper/main.cpp
index db5afa4a99..c9ccf17e25 100644
--- a/Userland/Applications/KeyboardMapper/main.cpp
+++ b/Userland/Applications/KeyboardMapper/main.cpp
@@ -66,7 +66,7 @@ int main(int argc, char** argv)
if (path != nullptr) {
keyboard_mapper_widget->load_from_file(path);
} else {
- keyboard_mapper_widget->load_from_file("/res/keymaps/en.json");
+ keyboard_mapper_widget->load_from_system();
}
// Actions
@@ -84,8 +84,8 @@ int main(int argc, char** argv)
});
auto save_as_action = GUI::CommonActions::make_save_as_action([&](auto&) {
- String m_name = "Unnamed";
- Optional<String> save_path = GUI::FilePicker::get_save_filepath(window, m_name, "json");
+ String name = "Unnamed";
+ Optional<String> save_path = GUI::FilePicker::get_save_filepath(window, name, "json");
if (!save_path.has_value())
return;