mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
skip add same request value on history argument enabled
This commit is contained in:
parent
a8c59d5642
commit
2c144c3182
5 changed files with 54 additions and 3 deletions
|
|
@ -161,10 +161,20 @@ void Page::navigation_reload(
|
|||
// Update navigation history?
|
||||
if (ADD_HISTORY)
|
||||
{
|
||||
pageNavigation->history_add(
|
||||
pageNavigation->get_request_text(),
|
||||
true
|
||||
// Skip same
|
||||
Glib::ustring request;
|
||||
|
||||
pageNavigation->try_history_current(
|
||||
request
|
||||
);
|
||||
|
||||
if (request != pageNavigation->get_request_text())
|
||||
{
|
||||
pageNavigation->history_add(
|
||||
pageNavigation->get_request_text(),
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Reset page data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue