diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-19 19:57:05 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-19 19:57:05 +0200 |
commit | c45e16f6052abdb04e1145db1208476264e4c57d (patch) | |
tree | 2814edb62ab1b22a81bb36b6a536ba49e836958f /Libraries/LibGUI/FilePicker.cpp | |
parent | 3b434068eb31db19e6c3c672eb59a33343fcffa2 (diff) | |
download | serenity-c45e16f6052abdb04e1145db1208476264e4c57d.zip |
LibCore: Add StandardPaths thing to retrieve various standard locations
Fixes #1853.
Diffstat (limited to 'Libraries/LibGUI/FilePicker.cpp')
-rw-r--r-- | Libraries/LibGUI/FilePicker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/FilePicker.cpp b/Libraries/LibGUI/FilePicker.cpp index 82e5aa6302..dacd6df7ac 100644 --- a/Libraries/LibGUI/FilePicker.cpp +++ b/Libraries/LibGUI/FilePicker.cpp @@ -128,7 +128,7 @@ FilePicker::FilePicker(Mode mode, const StringView& file_name, const StringView& toolbar.add_action(*open_parent_directory_action); auto go_home_action = CommonActions::make_go_home_action([this](auto&) { - m_model->set_root_path(get_current_user_home_path()); + m_model->set_root_path(Core::StandardPaths::home_directory()); }); toolbar.add_action(go_home_action); toolbar.add_separator(); |