mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
LibGUI+Applications: Give SettingsWindow tabs a string ID
This gives us a convenient way to refer to them, which will be used in the following commit.
This commit is contained in:
parent
4d2e18fb07
commit
ded5ba1f87
Notes:
sideshowbarker
2024-07-17 11:36:45 +09:00
Author: https://github.com/AtkinsSJ
Commit: ded5ba1f87
Pull-request: https://github.com/SerenityOS/serenity/pull/13766
9 changed files with 35 additions and 34 deletions
|
@ -28,8 +28,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto window = TRY(GUI::SettingsWindow::create("Terminal Settings"));
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
(void)TRY(window->add_tab<TerminalSettingsMainWidget>("Terminal"));
|
||||
(void)TRY(window->add_tab<TerminalSettingsViewWidget>("View"));
|
||||
(void)TRY(window->add_tab<TerminalSettingsMainWidget>("Terminal", "terminal"));
|
||||
(void)TRY(window->add_tab<TerminalSettingsViewWidget>("View", "view"));
|
||||
|
||||
window->show();
|
||||
return app->exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue