/* * Copyright (c) 2018-2020, Andreas Kling * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include 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); } }