mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
draft children components save action delegation
This commit is contained in:
parent
7e8aaef1c5
commit
b1f2a1b893
7 changed files with 32 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ int Tab::save()
|
|||
// Save current tab session
|
||||
for (int page_number = 0; page_number < get_n_pages(); page_number++)
|
||||
{
|
||||
auto tabLabel = get_tabLabel(
|
||||
const auto TAB_LABEL = get_tabLabel(
|
||||
page_number
|
||||
);
|
||||
|
||||
|
|
@ -151,12 +151,17 @@ int Tab::save()
|
|||
)SQL",
|
||||
page_number,
|
||||
page_number == get_current_page() ? 1 : 0,
|
||||
tabLabel->get_text()
|
||||
TAB_LABEL->get_text()
|
||||
).c_str(),
|
||||
nullptr,
|
||||
nullptr,
|
||||
&error
|
||||
);
|
||||
|
||||
// Delegate save action to the page component
|
||||
get_tabPage(
|
||||
page_number
|
||||
)->save();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue