implement restore feature for navbar request, change id data type to sqlite3_int64

This commit is contained in:
yggverse 2024-09-11 04:15:55 +03:00
parent 9d88b4aa16
commit 6b6ae753bc
7 changed files with 167 additions and 11 deletions

View file

@ -82,7 +82,15 @@ int Tab::restore()
) == 1
);
// @TODO restore child widget sessions
// Restore children components
get_tabPage(
PAGE_NUMBER
)->restore(
sqlite3_column_int64(
statement,
DB::SESSION::ID
)
);
}
}
@ -377,7 +385,7 @@ int Tab::DB::SESSION::clean(
{
while (sqlite3_step(statement) == SQLITE_ROW)
{
const int APP_BROWSER_MAIN_TAB__SESSION__ID = sqlite3_column_int(
const sqlite3_int64 APP_BROWSER_MAIN_TAB__SESSION__ID = sqlite3_column_int64(
statement,
DB::SESSION::ID
);