From 15b920c73001133de428ef0b9237d09baec71221 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 2 Jan 2023 17:43:41 +0100 Subject: [PATCH] WindowServer: Write new config to disk when system fonts are changed This makes system font changes actually persist across reboots. --- Userland/Services/WindowServer/ConnectionFromClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/WindowServer/ConnectionFromClient.cpp b/Userland/Services/WindowServer/ConnectionFromClient.cpp index e1c5c7a065..b1207eb4e6 100644 --- a/Userland/Services/WindowServer/ConnectionFromClient.cpp +++ b/Userland/Services/WindowServer/ConnectionFromClient.cpp @@ -950,7 +950,7 @@ Messages::WindowServer::SetSystemFontsResponse ConnectionFromClient::set_system_ g_config->write_entry("Fonts", "FixedWidth", fixed_width_font_query); g_config->write_entry("Fonts", "WindowTitle", window_title_font_query); - return true; + return !g_config->sync().is_error(); } void ConnectionFromClient::set_system_effects(Vector const& effects, u8 geometry)