mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 22:34:58 +00:00
LibGUI: Add "Go home" to GCommonActions
This commit is contained in:
parent
122d12e617
commit
ac3079b433
4 changed files with 8 additions and 2 deletions
|
@ -95,7 +95,7 @@ GFilePicker::GFilePicker(Mode mode, const StringView& file_name, const StringVie
|
|||
});
|
||||
toolbar->add_action(*open_parent_directory_action);
|
||||
|
||||
auto go_home_action = GAction::create("Go to Home Directory", GraphicsBitmap::load_from_file("/res/icons/16x16/go-home.png"), [this](auto&) {
|
||||
auto go_home_action = GCommonActions::make_go_home_action([this](auto&) {
|
||||
m_model->open(get_current_user_home_path());
|
||||
});
|
||||
toolbar->add_action(go_home_action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue