diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-06 17:21:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-06 17:55:47 +0200 |
commit | ec1a72b759a918c8fff2aab1887baf9c7e40af0e (patch) | |
tree | a409afa8141ccbbca89e735da8dfbdbd90dee32c /Userland/Applications | |
parent | 7b9754d976bc112e3e9c636323d71fd58741a0f1 (diff) | |
download | serenity-ec1a72b759a918c8fff2aab1887baf9c7e40af0e.zip |
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. :^)
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/FileManager/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Core::ConfigFile> 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()); |