mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-07 00:44:13 +00:00
implement refresh method
This commit is contained in:
parent
c67435a0b8
commit
6823052b52
@ -99,6 +99,8 @@ Browser::Browser(
|
|||||||
"refresh",
|
"refresh",
|
||||||
[this]
|
[this]
|
||||||
{
|
{
|
||||||
|
browserMain->refresh();
|
||||||
|
|
||||||
browserHeader->set_title(
|
browserHeader->set_title(
|
||||||
browserMain->get_current_tab_label_text()
|
browserMain->get_current_tab_label_text()
|
||||||
);
|
);
|
||||||
|
@ -72,4 +72,11 @@ void Main::tab_close_right()
|
|||||||
void Main::tab_close_all()
|
void Main::tab_close_all()
|
||||||
{
|
{
|
||||||
mainTab->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_right();
|
||||||
void tab_close();
|
void tab_close();
|
||||||
void tab_update();
|
void tab_update();
|
||||||
|
|
||||||
|
void refresh();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user