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 :^)
This commit is contained in:
Andy Jansson 2021-08-26 03:43:54 +02:00 committed by Andreas Kling
parent 827bf5232e
commit bb399c6955
Notes: sideshowbarker 2024-07-18 05:16:49 +09:00

View File

@ -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>();