mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
LibGUI: Add "New Directory" to the contextual menu in FilePicker
This commit is contained in:
parent
b51090e83e
commit
af8b715aac
Notes:
sideshowbarker
2024-07-16 23:09:49 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/af8b715aac Pull-request: https://github.com/SerenityOS/serenity/pull/17777
1 changed files with 4 additions and 0 deletions
|
@ -203,6 +203,10 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, StringView filename, St
|
|||
};
|
||||
|
||||
m_context_menu = GUI::Menu::construct();
|
||||
|
||||
m_context_menu->add_action(mkdir_action);
|
||||
m_context_menu->add_separator();
|
||||
|
||||
m_context_menu->add_action(GUI::Action::create_checkable(
|
||||
"Show dotfiles", { Mod_Ctrl, Key_H }, [&](auto& action) {
|
||||
m_model->set_should_show_dotfiles(action.is_checked());
|
||||
|
|
Loading…
Reference in a new issue