mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-30 04:54:15 +00:00
add follow argument
This commit is contained in:
parent
ff901ebcf8
commit
03f0eeaf9b
@ -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…
x
Reference in New Issue
Block a user