summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2021-07-14 12:05:57 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-07-29 09:24:08 +0200
commit16006e2d8ec75d8ead89bc115fbdd0dd096e818d (patch)
tree3efc9ac1589989de8e8412e6f6d7cdfeeb02c5fa /Userland/Applications
parentba119029ddc71e533d2abaed969e099e5efe37fe (diff)
downloadserenity-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.cpp2
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());
};