mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +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
|
@ -231,13 +231,6 @@ void ChessGamePreview::paint_event(GUI::PaintEvent& event)
|
|||
}
|
||||
}
|
||||
|
||||
ErrorOr<NonnullRefPtr<ChessSettingsWidget>> ChessSettingsWidget::create()
|
||||
{
|
||||
auto chess_settings_widget = TRY(try_create());
|
||||
TRY(chess_settings_widget->initialize());
|
||||
return chess_settings_widget;
|
||||
}
|
||||
|
||||
ErrorOr<void> ChessSettingsWidget::initialize()
|
||||
{
|
||||
auto piece_set_name = Config::read_string("Games"sv, "Chess"sv, "PieceSet"sv, "Classic"sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue