From 16006e2d8ec75d8ead89bc115fbdd0dd096e818d Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Wed, 14 Jul 2021 12:05:57 +0200 Subject: [PATCH] RunWindow: Center FilePicker window within the entire screen It doesn't make much sense since to center run window within the parent window since it's created in the bottom left corner of the screen. --- Userland/Applications/Run/RunWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/Run/RunWindow.cpp b/Userland/Applications/Run/RunWindow.cpp index ed7f7740c2..6964ac3be8 100644 --- a/Userland/Applications/Run/RunWindow.cpp +++ b/Userland/Applications/Run/RunWindow.cpp @@ -62,7 +62,7 @@ RunWindow::RunWindow() m_browse_button = *find_descendant_of_type_named("browse_button"); m_browse_button->on_click = [this](auto) { - Optional path = GUI::FilePicker::get_open_filepath(this); + Optional path = GUI::FilePicker::get_open_filepath(this, {}, Core::StandardPaths::home_directory(), false, GUI::Dialog::ScreenPosition::Center); if (path.has_value()) m_path_combo_box->set_text(path.value().view()); };