disable child-dependent actions by default

This commit is contained in:
yggverse 2024-09-08 01:30:39 +03:00
parent 4780967671
commit 7e7cff8c74

View File

@ -75,6 +75,8 @@ Browser::Browser(
{
browserMain->tab_close();
}
)->set_enabled(
false
);
add_action(
@ -83,6 +85,8 @@ Browser::Browser(
{
browserMain->tab_close_left();
}
)->set_enabled(
false
);
add_action(
@ -91,6 +95,8 @@ Browser::Browser(
{
browserMain->tab_close_right();
}
)->set_enabled(
false
);
add_action(
@ -99,6 +105,8 @@ Browser::Browser(
{
browserMain->tab_close_all();
}
)->set_enabled(
false
);
// Tab page navigation actions
@ -108,6 +116,8 @@ Browser::Browser(
{
browserMain->tab_page_navigation_update();
}
)->set_enabled(
false
);
add_action(
@ -116,6 +126,8 @@ Browser::Browser(
{
browserMain->tab_page_navigation_history_back();
}
)->set_enabled(
false
);
add_action(
@ -124,5 +136,7 @@ Browser::Browser(
{
browserMain->tab_page_navigation_history_forward();
}
)->set_enabled(
false
);
}