1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

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.
This commit is contained in:
Tom 2020-07-07 16:47:10 -06:00 committed by Andreas Kling
parent 1c1ab71692
commit 8d5fde440a

View file

@ -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());