mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 10:27:35 +00:00
Userland: Port to automatic GML initializer where possible
This commit is contained in:
parent
dec066fa5c
commit
adc845e0cb
41 changed files with 148 additions and 245 deletions
|
@ -15,14 +15,7 @@
|
|||
|
||||
namespace Maps {
|
||||
|
||||
ErrorOr<NonnullRefPtr<FavoritesPanel>> FavoritesPanel::create()
|
||||
{
|
||||
auto widget = TRY(try_create());
|
||||
TRY(widget->setup());
|
||||
return widget;
|
||||
}
|
||||
|
||||
ErrorOr<void> FavoritesPanel::setup()
|
||||
ErrorOr<void> FavoritesPanel::initialize()
|
||||
{
|
||||
m_empty_container = *find_descendant_of_type_named<GUI::Frame>("empty_container");
|
||||
m_favorites_list = *find_descendant_of_type_named<GUI::ListView>("favorites_list");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue