1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 02:27:43 +00:00

HackStudio: Add TerminalWrapper::on_command_exit

This commit is contained in:
Sergey Bugaev 2019-11-14 19:19:57 +03:00 committed by Andreas Kling
parent d29a078ab3
commit cd11a8597a
2 changed files with 5 additions and 0 deletions

View file

@ -47,6 +47,9 @@ void TerminalWrapper::run_command(const String& command)
} }
m_process_state_widget->set_tty_fd(-1); m_process_state_widget->set_tty_fd(-1);
m_pid = -1; m_pid = -1;
if (on_command_exit)
on_command_exit();
}; };
m_pid = fork(); m_pid = fork();

View file

@ -12,6 +12,8 @@ public:
void run_command(const String&); void run_command(const String&);
Function<void()> on_command_exit;
private: private:
explicit TerminalWrapper(GWidget* parent); explicit TerminalWrapper(GWidget* parent);