mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
KeyboardSettings: Rename m_current_applied_keymap
Rename it to m_initial_active_keymap to denote that it's the keymap that was active when the application started up.
This commit is contained in:
parent
256744ebdf
commit
a48d7d6adc
2 changed files with 4 additions and 4 deletions
|
@ -153,8 +153,8 @@ KeyboardSettingsWidget::KeyboardSettingsWidget()
|
||||||
auto json = JsonValue::from_string(proc_keymap->read_all()).release_value_but_fixme_should_propagate_errors();
|
auto json = JsonValue::from_string(proc_keymap->read_all()).release_value_but_fixme_should_propagate_errors();
|
||||||
auto const& keymap_object = json.as_object();
|
auto const& keymap_object = json.as_object();
|
||||||
VERIFY(keymap_object.has("keymap"));
|
VERIFY(keymap_object.has("keymap"));
|
||||||
m_current_applied_keymap = keymap_object.get("keymap").to_string();
|
m_initial_active_keymap = keymap_object.get("keymap").to_string();
|
||||||
dbgln("KeyboardSettings thinks the current keymap is: {}", m_current_applied_keymap);
|
dbgln("KeyboardSettings thinks the current keymap is: {}", m_initial_active_keymap);
|
||||||
|
|
||||||
auto mapper_config(Core::ConfigFile::open("/etc/Keyboard.ini").release_value_but_fixme_should_propagate_errors());
|
auto mapper_config(Core::ConfigFile::open("/etc/Keyboard.ini").release_value_but_fixme_should_propagate_errors());
|
||||||
auto keymaps = mapper_config->read_entry("Mapping", "Keymaps", "");
|
auto keymaps = mapper_config->read_entry("Mapping", "Keymaps", "");
|
||||||
|
@ -171,7 +171,7 @@ KeyboardSettingsWidget::KeyboardSettingsWidget()
|
||||||
keymaps_list_model.add_keymap(keymap);
|
keymaps_list_model.add_keymap(keymap);
|
||||||
}
|
}
|
||||||
|
|
||||||
keymaps_list_model.set_active_keymap(m_current_applied_keymap);
|
keymaps_list_model.set_active_keymap(m_initial_active_keymap);
|
||||||
|
|
||||||
m_add_keymap_button = find_descendant_of_type_named<GUI::Button>("add_keymap_button");
|
m_add_keymap_button = find_descendant_of_type_named<GUI::Button>("add_keymap_button");
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ private:
|
||||||
|
|
||||||
Vector<String> m_initial_keymap_list;
|
Vector<String> m_initial_keymap_list;
|
||||||
|
|
||||||
String m_current_applied_keymap;
|
String m_initial_active_keymap;
|
||||||
|
|
||||||
RefPtr<GUI::ListView> m_selected_keymaps_listview;
|
RefPtr<GUI::ListView> m_selected_keymaps_listview;
|
||||||
RefPtr<GUI::CheckBox> m_num_lock_checkbox;
|
RefPtr<GUI::CheckBox> m_num_lock_checkbox;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue