1
0
mirror of https://github.com/YGGverse/Yoda.git synced 2025-03-13 06:01:21 +00:00

add history argument

This commit is contained in:
yggverse 2024-09-04 21:30:35 +03:00
parent de40ed8892
commit d812e59794
2 changed files with 12 additions and 6 deletions
src/app/browser/main/tab

@ -101,12 +101,16 @@ void Page::refresh(
);
}
void Page::update()
{
void Page::update(
const bool & HISTORY
) {
// Update navigation history
pageNavbar->history_add(
pageNavbar->get_request_text()
);
if (HISTORY)
{
pageNavbar->history_add(
pageNavbar->get_request_text()
);
}
// Update page extras
refresh(

@ -63,7 +63,9 @@ namespace app::browser::main::tab
const double & PROGRESS
);
void update();
void update(
const bool & HISTORY = false
);
};
}