mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
draft page session db features
This commit is contained in:
parent
b1f2a1b893
commit
e78b7e5487
5 changed files with 97 additions and 10 deletions
|
|
@ -71,7 +71,7 @@ int Tab::restore()
|
|||
sqlite3_stmt* statement;
|
||||
|
||||
const int PREPARE_STATUS = ::sqlite3_prepare_v3(
|
||||
this->db,
|
||||
db,
|
||||
R"SQL(
|
||||
SELECT * FROM `app_browser_main_tab__session` ORDER BY `page_number` ASC
|
||||
)SQL",
|
||||
|
|
@ -161,7 +161,11 @@ int Tab::save()
|
|||
// Delegate save action to the page component
|
||||
get_tabPage(
|
||||
page_number
|
||||
)->save();
|
||||
)->save(
|
||||
::sqlite3_last_insert_rowid(
|
||||
db
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -198,7 +202,7 @@ int Tab::append(
|
|||
const bool & IS_CURRENT
|
||||
) {
|
||||
const auto TAB_PAGE = new tab::Page(
|
||||
|
||||
db,
|
||||
tab::Page::MIME::UNDEFINED,
|
||||
LABEL_TEXT,
|
||||
"", // @TODO restore feature
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue