1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 01:07:34 +00:00

HackStudio: Prefer FileSystem over DeprecatedFile

This also straightens out the logic to determine the project_path.
Instead of calling realpath on potentially-null strings and sometimes
not even reading the result, we now only make these calls when required,
and properly handle any error.
This commit is contained in:
Ben Wiederhake 2023-05-27 14:18:19 +02:00 committed by Andreas Kling
parent 0fab68ee16
commit f07ac8f20a
3 changed files with 15 additions and 17 deletions

View file

@ -1868,7 +1868,7 @@ void HackStudioWidget::change_editor_font(RefPtr<Gfx::Font const> font)
Config::write_i32("HackStudio"sv, "EditorFont"sv, "Size"sv, m_editor_font->presentation_size());
}
void HackStudioWidget::open_coredump(DeprecatedString const& coredump_path)
void HackStudioWidget::open_coredump(StringView coredump_path)
{
open_project("/usr/src/serenity");
m_mode = Mode::Coredump;