From 67d5c9e154bb94a138a6f3a40090de3dc0a6cfb0 Mon Sep 17 00:00:00 2001 From: TheMorc Date: Sun, 21 Feb 2021 10:19:09 +0100 Subject: [PATCH] Run: Prefill text field with last command on launch Fixes #5446 --- Userland/Applications/Run/RunWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/Run/RunWindow.cpp b/Userland/Applications/Run/RunWindow.cpp index 95aeaa9a41..580123fbcb 100644 --- a/Userland/Applications/Run/RunWindow.cpp +++ b/Userland/Applications/Run/RunWindow.cpp @@ -67,6 +67,7 @@ RunWindow::RunWindow() m_path_combo_box = *main_widget.find_descendant_of_type_named("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(); };