summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-20 15:27:29 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-20 18:05:05 +0200
commitd0fb511d75762e9d97fa80a01585381843b90a0a (patch)
tree5e8585b6d59abf30a0bb8dae1e4c57abaa68ffac /Userland/Applications
parentf85b94e6d4e7becf802e9f39461c85f0d6753b13 (diff)
downloadserenity-d0fb511d75762e9d97fa80a01585381843b90a0a.zip
FileManager: Set main window size before showing the window
This prevents sometimes seeing a smaller FileManager window on startup before it resizes to the proper size.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/FileManager/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp
index 34b3866df6..4b30104909 100644
--- a/Userland/Applications/FileManager/main.cpp
+++ b/Userland/Applications/FileManager/main.cpp
@@ -1199,12 +1199,12 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
paste_action->set_enabled(GUI::Clipboard::the().mime_type() == "text/uri-list" && access(initial_location.characters(), W_OK) == 0);
- window->show();
-
window->set_rect({ left, top, width, height });
if (was_maximized)
window->set_maximized(true);
+ window->show();
+
// Read directory read mode from config.
auto dir_view_mode = config->read_entry("DirectoryView", "ViewMode", "Icon");