fix tab update level

This commit is contained in:
yggverse 2024-08-14 07:11:24 +03:00
parent 1dc6bdf7e3
commit 03764ce599
7 changed files with 23 additions and 5 deletions

View File

@ -41,6 +41,14 @@ Browser::Browser(
)
);
add_action(
"tab_update",
sigc::mem_fun(
*this,
&Browser::main_tab_update
)
);
// Close
add_action(
"tab_close",
@ -101,6 +109,11 @@ void Browser::main_tab_append()
main->tab_append();
};
void Browser::main_tab_update()
{
main->tab_update();
};
void Browser::main_tab_close()
{
main->tab_close();

View File

@ -34,6 +34,7 @@ namespace app
~Browser();
void main_tab_append();
void main_tab_update();
void main_tab_close();
void main_tab_close_left();

View File

@ -19,7 +19,7 @@ Menu::Menu()
tab->append(
_("Update"),
"tab.update"
"win.tab_update"
);
// Build tab close submenu model

View File

@ -42,6 +42,11 @@ void Main::tab_append()
);
};
void Main::tab_update()
{
tab->update();
};
void Main::tab_close()
{
tab->close(

View File

@ -19,11 +19,10 @@ namespace app::browser
public:
Main();
~Main();
void tab_append();
void tab_update();
void tab_close();
void tab_close_left();
void tab_close_right();

View File

@ -5,7 +5,7 @@ using namespace app::browser::main::tab::data::navbar;
Update::Update()
{
set_action_name(
"tab.update"
"win.tab_update"
);
set_icon_name(

View File

@ -33,7 +33,7 @@ int main(
);
app->set_accel_for_action(
"tab.update",
"win.tab_update",
"<Primary>r"
);