summaryrefslogtreecommitdiff
path: root/Userland/Applications/FileManager
diff options
context:
space:
mode:
authorAndy Jansson <andyjansson@users.noreply.github.com>2021-08-26 03:43:54 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-26 12:05:51 +0200
commitbb399c6955b0995a5833acdc1c377de2ebdcb268 (patch)
tree3a29489f9dae5559c4773f6128206aeb246d1e6c /Userland/Applications/FileManager
parent827bf5232eaec9250ae9e0bd14aeb3643e41b643 (diff)
downloadserenity-bb399c6955b0995a5833acdc1c377de2ebdcb268.zip
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 :^)
Diffstat (limited to 'Userland/Applications/FileManager')
-rw-r--r--Userland/Applications/FileManager/main.cpp2
1 files changed, 1 insertions, 1 deletions
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<GUI::Widget>();