diff options
author | Cameron Youell <cameronyouell@gmail.com> | 2023-03-22 02:35:30 +1100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-21 19:03:21 +0000 |
commit | 1d24f394c61d8e2af216c95303014d0554165f72 (patch) | |
tree | e577780754109c9b38a81cfc815d35f19c68eb9d /Userland/Libraries/LibGUI/PathBreadcrumbbar.cpp | |
parent | edab0cbf41d80e805fe93ee0c4cc5021a1e599c1 (diff) | |
download | serenity-1d24f394c61d8e2af216c95303014d0554165f72.zip |
Everywhere: Use `LibFileSystem` where trivial
Diffstat (limited to 'Userland/Libraries/LibGUI/PathBreadcrumbbar.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/PathBreadcrumbbar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/PathBreadcrumbbar.cpp b/Userland/Libraries/LibGUI/PathBreadcrumbbar.cpp index 78988a3df3..062cb423ff 100644 --- a/Userland/Libraries/LibGUI/PathBreadcrumbbar.cpp +++ b/Userland/Libraries/LibGUI/PathBreadcrumbbar.cpp @@ -9,8 +9,8 @@ #include "PathBreadcrumbbar.h" #include <AK/LexicalPath.h> -#include <LibCore/DeprecatedFile.h> #include <LibCore/MimeData.h> +#include <LibFileSystem/FileSystem.h> #include <LibGUI/BoxLayout.h> #include <LibGUI/Breadcrumbbar.h> #include <LibGUI/FileIconProvider.h> @@ -49,7 +49,7 @@ PathBreadcrumbbar::PathBreadcrumbbar(NonnullRefPtr<GUI::TextBox> location_text_b }; m_location_text_box->on_return_pressed = [&] { - if (Core::DeprecatedFile::is_directory(m_location_text_box->text())) { + if (FileSystem::is_directory(m_location_text_box->text())) { set_current_path(m_location_text_box->text()); hide_location_text_box(); } @@ -104,7 +104,7 @@ void PathBreadcrumbbar::set_current_path(DeprecatedString const& new_path) // If the path change was because the directory we were in was deleted, // remove the breadcrumbs for it. if ((new_segment_index + 1 < m_breadcrumbbar->segment_count()) - && !Core::DeprecatedFile::is_directory(m_breadcrumbbar->segment_data(new_segment_index + 1))) { + && !FileSystem::is_directory(m_breadcrumbbar->segment_data(new_segment_index + 1))) { m_breadcrumbbar->remove_end_segments(new_segment_index + 1); } } else { |