mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement refresh method
This commit is contained in:
parent
c67435a0b8
commit
6823052b52
3 changed files with 11 additions and 0 deletions
|
|
@ -99,6 +99,8 @@ Browser::Browser(
|
|||
"refresh",
|
||||
[this]
|
||||
{
|
||||
browserMain->refresh();
|
||||
|
||||
browserHeader->set_title(
|
||||
browserMain->get_current_tab_label_text()
|
||||
);
|
||||
|
|
|
|||
|
|
@ -72,4 +72,11 @@ void Main::tab_close_right()
|
|||
void Main::tab_close_all()
|
||||
{
|
||||
mainTab->close_all();
|
||||
};
|
||||
|
||||
void Main::refresh()
|
||||
{
|
||||
mainTab->refresh(
|
||||
mainTab->get_current_page()
|
||||
);
|
||||
};
|
||||
|
|
@ -29,6 +29,8 @@ namespace app::browser
|
|||
void tab_close_right();
|
||||
void tab_close();
|
||||
void tab_update();
|
||||
|
||||
void refresh();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue