mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
Browser: Make underlined shortcuts in "Debug" menu unique
This commit is contained in:
parent
1d8b213b5b
commit
a22323ecce
Notes:
sideshowbarker
2024-07-17 21:11:12 +09:00
Author: https://github.com/Daste745 🔰 Commit: https://github.com/SerenityOS/serenity/commit/a22323ecce Pull-request: https://github.com/SerenityOS/serenity/pull/12369
|
@ -289,7 +289,7 @@ void BrowserWindow::build_menus()
|
|||
},
|
||||
this));
|
||||
debug_menu.add_action(GUI::Action::create(
|
||||
"Dump &Stacking Context Tree", g_icon_bag.layers, [this](auto&) {
|
||||
"Dump S&tacking Context Tree", g_icon_bag.layers, [this](auto&) {
|
||||
active_tab().m_web_content_view->debug_request("dump-stacking-context-tree");
|
||||
},
|
||||
this));
|
||||
|
@ -306,7 +306,7 @@ void BrowserWindow::build_menus()
|
|||
if (tab.on_dump_cookies)
|
||||
tab.on_dump_cookies();
|
||||
}));
|
||||
debug_menu.add_action(GUI::Action::create("Dump &Local Storage", [this](auto&) {
|
||||
debug_menu.add_action(GUI::Action::create("Dump Loc&al Storage", [this](auto&) {
|
||||
active_tab().m_web_content_view->debug_request("dump-local-storage");
|
||||
}));
|
||||
debug_menu.add_separator();
|
||||
|
@ -366,7 +366,7 @@ void BrowserWindow::build_menus()
|
|||
|
||||
debug_menu.add_separator();
|
||||
auto same_origin_policy_action = GUI::Action::create_checkable(
|
||||
"Enable Same &Origin Policy", [this](auto& action) {
|
||||
"Enable Same Origin &Policy", [this](auto& action) {
|
||||
active_tab().m_web_content_view->debug_request("same-origin-policy", action.is_checked() ? "on" : "off");
|
||||
},
|
||||
this);
|
||||
|
|
Loading…
Reference in a new issue