delegate db actions to label class

This commit is contained in:
yggverse 2024-09-11 05:16:37 +03:00
parent 6b6ae753bc
commit b67b9561fb
10 changed files with 291 additions and 59 deletions

View file

@ -63,13 +63,6 @@ Page::Page(
}
// Actions
void Page::update()
{
pageNavigation->update(
progress_fraction
);
}
int Page::restore(
const sqlite3_int64 & APP_BROWSER_MAIN_TAB__SESSION__ID
) {
@ -106,11 +99,9 @@ int Page::restore(
}
}
sqlite3_finalize(
return sqlite3_finalize(
statement
);
return PREPARE_STATUS;
}
int Page::save(
@ -140,6 +131,11 @@ void Page::update(
description = DESCRIPTION;
progress_fraction = PROGRESS_FRACTION;
// Refresh children components
pageNavigation->update(
progress_fraction
);
// Refresh parent window
action__refresh->activate();
}