Parcourir la source

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.
LuK1337 il y a 4 ans
Parent
commit
16006e2d8e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Userland/Applications/Run/RunWindow.cpp

+ 1 - 1
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());
     };