mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibGUI+Applications: Port SettingsWindow::add_tab() to the new string
This commit is contained in:
parent
797968c310
commit
446c600d09
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/krkk
Commit: 446c600d09
Pull-request: https://github.com/SerenityOS/serenity/pull/17800
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/awesomekling
11 changed files with 25 additions and 25 deletions
|
@ -35,7 +35,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto window = TRY(GUI::SettingsWindow::create("Keyboard Settings"));
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
auto keyboard_settings_widget = TRY(window->add_tab<KeyboardSettingsWidget>("Keyboard"sv, "keyboard"sv));
|
||||
auto keyboard_settings_widget = TRY(window->add_tab<KeyboardSettingsWidget>(TRY("Keyboard"_string), "keyboard"sv));
|
||||
window->set_active_tab(selected_tab);
|
||||
|
||||
window->on_active_window_change = [&](bool is_active_window) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue