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

View file

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

View file

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