mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
delegate db actions to label class
This commit is contained in:
parent
6b6ae753bc
commit
b67b9561fb
10 changed files with 291 additions and 59 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue