summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2023-05-13 13:08:04 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-13 17:04:05 +0200
commit88334f67bea5b66237de8868822e691621a973c8 (patch)
tree8d9cc85c8dd7d3dc0d8285d98313527bbe471aaa /Userland/DevTools
parent25d2828ef5b2ec2d8a3ffb9ae105183e9f23c374 (diff)
downloadserenity-88334f67bea5b66237de8868822e691621a973c8.zip
HackStudio: Prefer FileSystem over DeprecatedFile
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/HackStudio/HackStudioWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
index 97b45ccc25..9a970632a6 100644
--- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp
+++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
@@ -27,7 +27,6 @@
#include <AK/StringBuilder.h>
#include <Kernel/API/InodeWatcherEvent.h>
#include <LibConfig/Client.h>
-#include <LibCore/DeprecatedFile.h>
#include <LibCore/Event.h>
#include <LibCore/EventLoop.h>
#include <LibCore/FileWatcher.h>
@@ -903,10 +902,11 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_save_as_action()
auto const old_filename = current_editor_wrapper().filename();
LexicalPath const old_path(old_filename);
+ auto suggested_path = FileSystem::absolute_path(old_path.string()).release_value_but_fixme_should_propagate_errors();
Optional<DeprecatedString> save_path = GUI::FilePicker::get_save_filepath(window(),
old_filename.is_null() ? "Untitled"sv : old_path.title(),
old_filename.is_null() ? "txt"sv : old_path.extension(),
- Core::DeprecatedFile::absolute_path(old_path.dirname()));
+ suggested_path);
if (!save_path.has_value()) {
return;
}