diff options
author | Itamar <itamar8910@gmail.com> | 2021-05-01 13:04:19 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-02 22:49:25 +0200 |
commit | 7f2e1991cc91582a8cddf0092ca0fba375ce2035 (patch) | |
tree | bc33b4e9fd1486931660d400d6105f32421b848b /Userland/DevTools/HackStudio/main.cpp | |
parent | 790908ffc3a77dc140b301ee1765b614a94a65d3 (diff) | |
download | serenity-7f2e1991cc91582a8cddf0092ca0fba375ce2035.zip |
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.
Diffstat (limited to 'Userland/DevTools/HackStudio/main.cpp')
-rw-r--r-- | Userland/DevTools/HackStudio/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/main.cpp b/Userland/DevTools/HackStudio/main.cpp index 547d69ad7a..0cb393c89b 100644 --- a/Userland/DevTools/HackStudio/main.cpp +++ b/Userland/DevTools/HackStudio/main.cpp @@ -159,7 +159,7 @@ String currently_open_file() { if (!s_hack_studio_widget) return {}; - return s_hack_studio_widget->currently_open_file(); + return s_hack_studio_widget->active_file(); } void set_current_editor_wrapper(RefPtr<EditorWrapper> wrapper) |