mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +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
|
@ -37,7 +37,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
auto app_icon = GUI::Icon::default_icon("network"sv);
|
||||
auto window = TRY(GUI::SettingsWindow::create("Network Settings", GUI::SettingsWindow::ShowDefaultsButton::No));
|
||||
|
||||
auto network_settings_widget = TRY(NetworkSettings::NetworkSettingsWidget::create());
|
||||
auto network_settings_widget = TRY(NetworkSettings::NetworkSettingsWidget::try_create());
|
||||
TRY(window->add_tab(network_settings_widget, "Network"_string, "network"sv));
|
||||
if (!adapter.is_null()) {
|
||||
network_settings_widget->switch_adapter(adapter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue