mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Everywhere: Use LibFileSystem
where trivial
This commit is contained in:
parent
edab0cbf41
commit
1d24f394c6
115 changed files with 275 additions and 228 deletions
|
@ -15,7 +15,7 @@
|
|||
#include <Applications/ThemeEditor/MetricPropertyGML.h>
|
||||
#include <Applications/ThemeEditor/PathPropertyGML.h>
|
||||
#include <Applications/ThemeEditor/ThemeEditorGML.h>
|
||||
#include <LibCore/DeprecatedFile.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
#include <LibFileSystemAccessClient/Client.h>
|
||||
#include <LibGUI/ActionGroup.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
|
@ -591,8 +591,8 @@ void MainWidget::show_path_picker_dialog(StringView property_display_name, GUI::
|
|||
bool open_folder = path_picker_target == PathPickerTarget::Folder;
|
||||
auto window_title = DeprecatedString::formatted(open_folder ? "Select {} folder"sv : "Select {} file"sv, property_display_name);
|
||||
auto target_path = path_input.text();
|
||||
if (Core::DeprecatedFile::exists(target_path)) {
|
||||
if (!Core::DeprecatedFile::is_directory(target_path))
|
||||
if (FileSystem::exists(target_path)) {
|
||||
if (!FileSystem::is_directory(target_path))
|
||||
target_path = LexicalPath::dirname(target_path);
|
||||
} else {
|
||||
target_path = "/res/icons";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue