123456789101112131415161718192021222324 |
- /*
- * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
- * Copyright (c) 2022, the SerenityOS developers.
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
- #include <LibGUI/LazyWidget.h>
- REGISTER_WIDGET(GUI, LazyWidget)
- namespace GUI {
- void LazyWidget::show_event(ShowEvent&)
- {
- if (m_has_been_shown)
- return;
- m_has_been_shown = true;
- VERIFY(on_first_show);
- on_first_show(*this);
- }
- }
|