From bb399c6955b0995a5833acdc1c377de2ebdcb268 Mon Sep 17 00:00:00 2001 From: Andy Jansson Date: Thu, 26 Aug 2021 03:43:54 +0200 Subject: [PATCH] FileManager: Change read_i32 call to read_bool The FileManager/Window/Maximized flag was incorrectly read from the ConfigServer using read_i32 instead of the intended read_bool function call. It is now being read with the correct type :^) --- Userland/Applications/FileManager/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp index af857e8954..7396b96682 100644 --- a/Userland/Applications/FileManager/main.cpp +++ b/Userland/Applications/FileManager/main.cpp @@ -433,7 +433,7 @@ int run_in_windowed_mode(String initial_location, String entry_focused_on_init) auto top = Config::read_i32("FileManager", "Window", "Top", 75); auto width = Config::read_i32("FileManager", "Window", "Width", 640); auto height = Config::read_i32("FileManager", "Window", "Height", 480); - auto was_maximized = Config::read_i32("FileManager", "Window", "Maximized", false); + auto was_maximized = Config::read_bool("FileManager", "Window", "Maximized", false); auto& widget = window->set_main_widget();