diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2022-08-16 07:59:45 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-16 16:41:47 +0200 |
commit | 7c1995993f48982b79b06dca5f36a0f18e687362 (patch) | |
tree | 2863ea228d43b4a60411fcf908496af5cafbf3a3 | |
parent | 71a437b512e0156ceae4532fb896c49f05da5954 (diff) | |
download | serenity-7c1995993f48982b79b06dca5f36a0f18e687362.zip |
WindowServer: Use correct config group for workspace settings
WindowServer.ini already contained the correct pluralized group by
default, but was left unused by a typo.
-rw-r--r-- | Userland/Services/WindowServer/WindowManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index c0ef52d04b..0d46f9a98e 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -72,8 +72,8 @@ void WindowManager::reload_config() { m_config = Core::ConfigFile::open("/etc/WindowServer.ini", Core::ConfigFile::AllowWriting::Yes).release_value_but_fixme_should_propagate_errors(); - unsigned workspace_rows = (unsigned)m_config->read_num_entry("Workspace", "Rows", default_window_stack_rows); - unsigned workspace_columns = (unsigned)m_config->read_num_entry("Workspace", "Columns", default_window_stack_columns); + unsigned workspace_rows = (unsigned)m_config->read_num_entry("Workspaces", "Rows", default_window_stack_rows); + unsigned workspace_columns = (unsigned)m_config->read_num_entry("Workspaces", "Columns", default_window_stack_columns); if (workspace_rows == 0 || workspace_columns == 0 || workspace_rows > max_window_stack_rows || workspace_columns > max_window_stack_columns) { workspace_rows = default_window_stack_rows; workspace_columns = default_window_stack_columns; @@ -254,8 +254,8 @@ bool WindowManager::apply_workspace_settings(unsigned rows, unsigned columns, bo } if (save) { - m_config->write_num_entry("Workspace", "Rows", window_stack_rows()); - m_config->write_num_entry("Workspace", "Columns", window_stack_columns()); + m_config->write_num_entry("Workspaces", "Rows", window_stack_rows()); + m_config->write_num_entry("Workspaces", "Columns", window_stack_columns()); return !m_config->sync().is_error(); } return true; |