1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

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
parent a4f80ee658
commit 67d5c9e154

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 = *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_model(m_path_history_model);
m_path_combo_box->set_selected_index(0);
m_path_combo_box->on_return_pressed = [this] { m_path_combo_box->on_return_pressed = [this] {
m_ok_button->click(); m_ok_button->click();
}; };