CHange the TabbedDialog create-tab API to allow for future lazy-loading

This commit is contained in:
Henrik Rydgård committed 2025-03-23 22:48:57 +01:00
1 parent 4b977b43c2
commit 6efb758893
12 files changed
+249 -145

No files matched your search

+7 -5
View File
@@ -278,12 +278,14 @@ RemoteISOScreen::RemoteISOScreen(const Path &filename) : TabbedUIDialogScreenWit
void RemoteISOScreen::CreateTabs() {
auto ri = GetI18NCategory(I18NCat::REMOTEISO);
UI::LinearLayout *connect = AddTab("Connect", ri->T("Connect"));
connect->SetSpacing(5.0f);
CreateConnectTab(connect);
AddTab("Connect", ri->T("Connect"), [this](UI::LinearLayout *connect) {
connect->SetSpacing(5.0f);
CreateConnectTab(connect);
});
UI::LinearLayout *settings = AddTab("Settings", ri->T("Settings"));
CreateSettingsTab(settings);
AddTab("Settings", ri->T("Settings"), [this](UI::LinearLayout *settings) {
CreateSettingsTab(settings);
});
}
void RemoteISOScreen::update() {