From ec1a72b759a918c8fff2aab1887baf9c7e40af0e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 6 Apr 2021 17:21:57 +0200 Subject: [PATCH] FileManager: Set the default menu item in desktop context menus This makes the "Run TextEditor" action show up in bold text as expected when opening the context menu for TextEditor on the desktop. :^) --- Userland/Applications/FileManager/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp index 1ccb28985c..dac7d86def 100644 --- a/Userland/Applications/FileManager/main.cpp +++ b/Userland/Applications/FileManager/main.cpp @@ -379,7 +379,7 @@ int run_in_desktop_mode([[maybe_unused]] RefPtr config) file_context_menu->add_separator(); file_context_menu->add_action(properties_action); - file_context_menu->popup(event.screen_position()); + file_context_menu->popup(event.screen_position(), file_context_menu_action_default_action); } } else { desktop_view_context_menu->popup(event.screen_position());