diff options
author | Andy Jansson <andyjansson@users.noreply.github.com> | 2021-08-26 03:43:54 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-26 12:05:51 +0200 |
commit | bb399c6955b0995a5833acdc1c377de2ebdcb268 (patch) | |
tree | 3a29489f9dae5559c4773f6128206aeb246d1e6c /Userland/Applications/FileManager | |
parent | 827bf5232eaec9250ae9e0bd14aeb3643e41b643 (diff) | |
download | serenity-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.cpp | 2 |
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>(); |