mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
add follow argument
This commit is contained in:
parent
ff901ebcf8
commit
03f0eeaf9b
2 changed files with 8 additions and 3 deletions
|
|
@ -73,7 +73,8 @@ bool History::try_forward(
|
|||
}
|
||||
|
||||
void History::push(
|
||||
const Glib::ustring & REQUEST
|
||||
const Glib::ustring & REQUEST,
|
||||
bool follow
|
||||
) {
|
||||
if (memory.empty() || memory.back().request != REQUEST)
|
||||
{
|
||||
|
|
@ -87,7 +88,10 @@ void History::push(
|
|||
}
|
||||
);
|
||||
|
||||
index = memory.size(); // @TODO
|
||||
if (follow)
|
||||
{
|
||||
index = memory.size();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ namespace app::browser::main::tab::page::navbar
|
|||
);
|
||||
|
||||
void push(
|
||||
const Glib::ustring & REQUEST
|
||||
const Glib::ustring & REQUEST,
|
||||
bool follow = true
|
||||
);
|
||||
|
||||
void refresh();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue