From 7c1995993f48982b79b06dca5f36a0f18e687362 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Tue, 16 Aug 2022 07:59:45 -0400 Subject: 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. --- Userland/Services/WindowServer/WindowManager.cpp | 8 ++++---- 1 file 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; -- cgit v1.2.3