Run: Prefill text field with last command on launch

Fixes #5446
This commit is contained in:
TheMorc 2021-02-21 10:19:09 +01:00 committed by Andreas Kling
commit 67d5c9e154
Notes: sideshowbarker 2024-07-18 22:02:15 +09:00

View file

@ -67,6 +67,7 @@ RunWindow::RunWindow()
m_path_combo_box = *main_widget.find_descendant_of_type_named<GUI::ComboBox>("path");
m_path_combo_box->set_model(m_path_history_model);
m_path_combo_box->set_selected_index(0);
m_path_combo_box->on_return_pressed = [this] {
m_ok_button->click();
};