diff options
author | Tom <tomut@yahoo.com> | 2020-07-07 16:47:10 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-11 11:45:49 +0200 |
commit | 8d5fde440a967ebf27e21eb2d21098dc6369bab6 (patch) | |
tree | bd1411a4ea49e20da4ff50627ac3164dbd677a99 | |
parent | 1c1ab716921d8c6c200a1298364903388929fd0a (diff) | |
download | serenity-8d5fde440a967ebf27e21eb2d21098dc6369bab6.zip |
FileManager: Specify "Open in Text Editor" action as default in context menu
Since double-clicking the item would trigger the "Open in Text Editor"
action, specify it as the default action when displaying the
context menu.
-rw-r--r-- | Applications/FileManager/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp index 162bb397a8..6d69c7b894 100644 --- a/Applications/FileManager/main.cpp +++ b/Applications/FileManager/main.cpp @@ -764,7 +764,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio folder_specific_paste_action->set_enabled(should_get_enabled); directory_context_menu->popup(event.screen_position()); } else { - file_context_menu->popup(event.screen_position()); + file_context_menu->popup(event.screen_position(), open_in_text_editor_action); } } else { directory_view_context_menu->popup(event.screen_position()); |