mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
remove default values, add follow argument
This commit is contained in:
parent
4cde44025f
commit
ab0c28badf
4 changed files with 25 additions and 15 deletions
|
|
@ -88,10 +88,12 @@ Navigation::Navigation(
|
|||
|
||||
// Actions
|
||||
void Navigation::history_add(
|
||||
const Glib::ustring & REQUEST
|
||||
const Glib::ustring & REQUEST,
|
||||
const bool & FOLLOW
|
||||
) {
|
||||
navigationHistory->add(
|
||||
REQUEST
|
||||
REQUEST,
|
||||
FOLLOW
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -153,12 +155,14 @@ Glib::ustring Navigation::get_request_port()
|
|||
return navigationRequest->get_port();
|
||||
}
|
||||
|
||||
// Actionable getters
|
||||
bool Navigation::try_history_back(
|
||||
Glib::ustring & request
|
||||
Glib::ustring & request,
|
||||
const bool & FOLLOW
|
||||
) {
|
||||
navigation::History::Memory match;
|
||||
|
||||
if (navigationHistory->try_back(match))
|
||||
if (navigationHistory->try_back(match, FOLLOW))
|
||||
{
|
||||
request = match.request;
|
||||
|
||||
|
|
@ -169,11 +173,12 @@ bool Navigation::try_history_back(
|
|||
}
|
||||
|
||||
bool Navigation::try_history_forward(
|
||||
Glib::ustring & request
|
||||
Glib::ustring & request,
|
||||
const bool & FOLLOW
|
||||
) {
|
||||
navigation::History::Memory match;
|
||||
|
||||
if (navigationHistory->try_forward(match))
|
||||
if (navigationHistory->try_forward(match, FOLLOW))
|
||||
{
|
||||
request = match.request;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue