From 761127c21992f433578c240fc03506cc8f403c12 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 4 Sep 2024 02:36:30 +0300 Subject: [PATCH] rename methods --- src/app/browser/main/tab/page/navbar.cpp | 4 ++-- src/app/browser/main/tab/page/navbar/history.cpp | 8 ++++---- src/app/browser/main/tab/page/navbar/history.hpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/browser/main/tab/page/navbar.cpp b/src/app/browser/main/tab/page/navbar.cpp index 5119801a..576e57fb 100644 --- a/src/app/browser/main/tab/page/navbar.cpp +++ b/src/app/browser/main/tab/page/navbar.cpp @@ -91,7 +91,7 @@ void Navbar::back() { navbar::History::Memory match; - if (navbarHistory->back(match)) + if (navbarHistory->try_back(match)) { navbarRequest->set_text( match.request @@ -105,7 +105,7 @@ void Navbar::forward() { navbar::History::Memory match; - if (navbarHistory->forward(match)) + if (navbarHistory->try_forward(match)) { navbarRequest->set_text( match.request diff --git a/src/app/browser/main/tab/page/navbar/history.cpp b/src/app/browser/main/tab/page/navbar/history.cpp index cfe8e4fe..29487ff3 100644 --- a/src/app/browser/main/tab/page/navbar/history.cpp +++ b/src/app/browser/main/tab/page/navbar/history.cpp @@ -24,7 +24,7 @@ History::History() } // Actions -bool History::back( +bool History::try_back( Memory & match, bool follow ) { @@ -48,7 +48,7 @@ bool History::back( } } -bool History::forward( +bool History::try_forward( Memory & match, bool follow ) { @@ -96,14 +96,14 @@ void History::refresh() Memory match; historyBack->set_sensitive( - back( + try_back( match, false ) ); historyForward->set_sensitive( - forward( + try_forward( match, false ) diff --git a/src/app/browser/main/tab/page/navbar/history.hpp b/src/app/browser/main/tab/page/navbar/history.hpp index eb39c1b2..094ee6d9 100644 --- a/src/app/browser/main/tab/page/navbar/history.hpp +++ b/src/app/browser/main/tab/page/navbar/history.hpp @@ -40,12 +40,12 @@ namespace app::browser::main::tab::page::navbar History(); // Actions - bool back( + bool try_back( Memory & match, bool follow = true ); - bool forward( + bool try_forward( Memory & match, bool follow = true );