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

HackStudio: Move handle_external_file_deletion logic into own method

Added a close_file_in_all_editors method to HackStudioWidget and moved
the code from handle_external_file_deletion into it so that it can be
reused elsewhere to close files.
This commit is contained in:
Lennon Donaghy 2021-08-01 13:01:49 +01:00 committed by Andreas Kling
parent 219206725b
commit d48bd49002
2 changed files with 29 additions and 23 deletions

View file

@ -35,6 +35,7 @@ class HackStudioWidget : public GUI::Widget {
public:
virtual ~HackStudioWidget() override;
bool open_file(const String& filename);
void close_file_in_all_editors(String const& filename);
void update_actions();
Project& project();