draft refresh methods

This commit is contained in:
yggverse 2024-09-08 02:30:48 +03:00
parent b97ffe5791
commit 45dc3b160a
5 changed files with 22 additions and 2 deletions

View File

@ -28,14 +28,14 @@ void History::refresh()
{
Memory match;
historyBack->set_sensitive( // @TODO operate with action status
historyBack->refresh(
try_back(
match,
false
)
);
historyForward->set_sensitive( // @TODO operate with action status
historyForward->refresh(
try_forward(
match,
false

View File

@ -16,3 +16,9 @@ Back::Back()
_("Back")
);
}
void Back::refresh(
const bool & ENABLED
) {
// @TODO update action status
}

View File

@ -11,6 +11,10 @@ namespace app::browser::main::tab::page::navigation::history
public:
Back();
void refresh(
const bool & ENABLED
);
};
}

View File

@ -15,4 +15,10 @@ Forward::Forward()
set_tooltip_text(
_("Forward")
);
}
void Forward::refresh(
const bool & ENABLED
) {
// @TODO update action status
}

View File

@ -11,6 +11,10 @@ namespace app::browser::main::tab::page::navigation::history
public:
Forward();
void refresh(
const bool & ENABLED
);
};
}