mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +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:
parent
1c1ab71692
commit
8d5fde440a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
folder_specific_paste_action->set_enabled(should_get_enabled);
|
||||||
directory_context_menu->popup(event.screen_position());
|
directory_context_menu->popup(event.screen_position());
|
||||||
} else {
|
} else {
|
||||||
file_context_menu->popup(event.screen_position());
|
file_context_menu->popup(event.screen_position(), open_in_text_editor_action);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
directory_view_context_menu->popup(event.screen_position());
|
directory_view_context_menu->popup(event.screen_position());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue