Browse Source

remove request validation logic from the push method

CPP-GTK4
yggverse 2 months ago
parent
commit
b2e45c7967
  1. 25
      src/app/browser/main/tab/page/navbar/history.cpp

25
src/app/browser/main/tab/page/navbar/history.cpp

@ -76,22 +76,19 @@ void History::push( @@ -76,22 +76,19 @@ void History::push(
const Glib::ustring & REQUEST,
const bool & FOLLOW
) {
if (memory.empty() || memory.back().request != REQUEST)
{
memory.push_back(
{
REQUEST,
std::time(
nullptr
),
true
}
);
if (FOLLOW)
memory.push_back(
{
index = memory.size();
REQUEST,
std::time(
nullptr
),
true
}
);
if (FOLLOW)
{
index = memory.size();
}
}

Loading…
Cancel
Save