diff options
author | LuK1337 <priv.luk@gmail.com> | 2021-07-14 12:05:57 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-29 09:24:08 +0200 |
commit | 16006e2d8ec75d8ead89bc115fbdd0dd096e818d (patch) | |
tree | 3efc9ac1589989de8e8412e6f6d7cdfeeb02c5fa /Userland/Applications | |
parent | ba119029ddc71e533d2abaed969e099e5efe37fe (diff) | |
download | serenity-16006e2d8ec75d8ead89bc115fbdd0dd096e818d.zip |
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.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/Run/RunWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<GUI::Button>("browse_button"); m_browse_button->on_click = [this](auto) { - Optional<String> path = GUI::FilePicker::get_open_filepath(this); + Optional<String> 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()); }; |