mirror of
https://github.com/RGBCube/serenity
synced 2025-06-30 19:22:12 +00:00
LibGUI: Add "New Directory" to the contextual menu in FilePicker
This commit is contained in:
parent
b51090e83e
commit
af8b715aac
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 = GUI::Menu::construct();
|
||||||
|
|
||||||
|
m_context_menu->add_action(mkdir_action);
|
||||||
|
m_context_menu->add_separator();
|
||||||
|
|
||||||
m_context_menu->add_action(GUI::Action::create_checkable(
|
m_context_menu->add_action(GUI::Action::create_checkable(
|
||||||
"Show dotfiles", { Mod_Ctrl, Key_H }, [&](auto& action) {
|
"Show dotfiles", { Mod_Ctrl, Key_H }, [&](auto& action) {
|
||||||
m_model->set_should_show_dotfiles(action.is_checked());
|
m_model->set_should_show_dotfiles(action.is_checked());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue