Browse Source

implement current memory index save

CPP-GTK4
yggverse 2 months ago
parent
commit
f3483cf0c3
  1. 8
      src/app/browser/main/tab/page/navigation/history.cpp

8
src/app/browser/main/tab/page/navigation/history.cpp

@ -134,14 +134,14 @@ void History::save(
); );
// Add new records // Add new records
for (const auto & VALUE : memory) int offset = -1; for (const auto & MEMORY : memory)
{ {
DB::SESSION::add( DB::SESSION::add(
db, db,
APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID, APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID,
VALUE.time, MEMORY.time,
VALUE.request, MEMORY.request,
-1 == index // @TODO ++offset == index // is current
); );
} }
} }

Loading…
Cancel
Save