mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +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:
parent
0fab68ee16
commit
f07ac8f20a
3 changed files with 15 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue