mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 23:15:08 +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
|
@ -257,7 +257,7 @@ int main(int argc, char** argv)
|
|||
directory_view->open_next_directory();
|
||||
});
|
||||
|
||||
auto go_home_action = GAction::create("Go to Home Directory", GraphicsBitmap::load_from_file("/res/icons/16x16/go-home.png"), [&](auto&) {
|
||||
auto go_home_action = GCommonActions::make_go_home_action([&](auto&) {
|
||||
directory_view->open(get_current_user_home_path());
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue