mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
LibGUI: Add Window::on_close hook
This will be invoked when the window is closed, which is helpful if you want to remove the window from some kind of owner after it's closed.
This commit is contained in:
@@ -94,6 +94,8 @@ Window::~Window()
|
||||
void Window::close()
|
||||
{
|
||||
hide();
|
||||
if (on_close)
|
||||
on_close();
|
||||
}
|
||||
|
||||
void Window::move_to_front()
|
||||
|
||||
Reference in New Issue
Block a user