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

HackStudio: Get rid of m_currently_open_file member

It had the following FIXME:
// FIXME: This doesn't seem compatible with multiple split editors

In practice this member was used to get the filename of the currently
active edtior. So we now get it directly from the currently active
EditorWrapper.
This commit is contained in:
Itamar 2021-05-01 13:04:19 +03:00 committed by Andreas Kling
parent 790908ffc3
commit 7f2e1991cc
5 changed files with 26 additions and 25 deletions

View file

@ -80,5 +80,10 @@ void EditorWrapper::set_mode_non_displayable()
editor().set_palette(palette);
editor().document().set_text("The contents of this file could not be displayed. Is it a binary file?");
}
void EditorWrapper::set_filename(const String& filename)
{
m_filename = filename;
m_filename_label->set_text(m_filename);
}
}