mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibCore: Rename File
to DeprecatedFile
As usual, this removes many unused includes and moves used includes further down the chain.
This commit is contained in:
parent
14951b92ca
commit
d43a7eae54
193 changed files with 536 additions and 556 deletions
|
@ -589,8 +589,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::File::exists(target_path)) {
|
||||
if (!Core::File::is_directory(target_path))
|
||||
if (Core::DeprecatedFile::exists(target_path)) {
|
||||
if (!Core::DeprecatedFile::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