mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-17 10:10:02 +00:00
rename methods
This commit is contained in:
parent
43e89716ae
commit
761127c219
@ -91,7 +91,7 @@ void Navbar::back()
|
|||||||
{
|
{
|
||||||
navbar::History::Memory match;
|
navbar::History::Memory match;
|
||||||
|
|
||||||
if (navbarHistory->back(match))
|
if (navbarHistory->try_back(match))
|
||||||
{
|
{
|
||||||
navbarRequest->set_text(
|
navbarRequest->set_text(
|
||||||
match.request
|
match.request
|
||||||
@ -105,7 +105,7 @@ void Navbar::forward()
|
|||||||
{
|
{
|
||||||
navbar::History::Memory match;
|
navbar::History::Memory match;
|
||||||
|
|
||||||
if (navbarHistory->forward(match))
|
if (navbarHistory->try_forward(match))
|
||||||
{
|
{
|
||||||
navbarRequest->set_text(
|
navbarRequest->set_text(
|
||||||
match.request
|
match.request
|
||||||
|
@ -24,7 +24,7 @@ History::History()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
bool History::back(
|
bool History::try_back(
|
||||||
Memory & match,
|
Memory & match,
|
||||||
bool follow
|
bool follow
|
||||||
) {
|
) {
|
||||||
@ -48,7 +48,7 @@ bool History::back(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool History::forward(
|
bool History::try_forward(
|
||||||
Memory & match,
|
Memory & match,
|
||||||
bool follow
|
bool follow
|
||||||
) {
|
) {
|
||||||
@ -96,14 +96,14 @@ void History::refresh()
|
|||||||
Memory match;
|
Memory match;
|
||||||
|
|
||||||
historyBack->set_sensitive(
|
historyBack->set_sensitive(
|
||||||
back(
|
try_back(
|
||||||
match,
|
match,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
historyForward->set_sensitive(
|
historyForward->set_sensitive(
|
||||||
forward(
|
try_forward(
|
||||||
match,
|
match,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
|
@ -40,12 +40,12 @@ namespace app::browser::main::tab::page::navbar
|
|||||||
History();
|
History();
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
bool back(
|
bool try_back(
|
||||||
Memory & match,
|
Memory & match,
|
||||||
bool follow = true
|
bool follow = true
|
||||||
);
|
);
|
||||||
|
|
||||||
bool forward(
|
bool try_forward(
|
||||||
Memory & match,
|
Memory & match,
|
||||||
bool follow = true
|
bool follow = true
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user