mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
Ladybird: Add Ctrl+Shift+G shortcut to force a garbage collection
This commit is contained in:
parent
ccf95631ba
commit
8b593c9884
1 changed files with 1 additions and 0 deletions
|
@ -182,6 +182,7 @@ BrowserWindow::BrowserWindow()
|
|||
debug_menu->addSeparator();
|
||||
|
||||
auto* collect_garbage_action = new QAction("Collect Garbage", this);
|
||||
collect_garbage_action->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_G));
|
||||
collect_garbage_action->setIcon(QIcon(QString("%1/res/icons/16x16/trash-can.png").arg(s_serenity_resource_root.characters())));
|
||||
debug_menu->addAction(collect_garbage_action);
|
||||
QObject::connect(collect_garbage_action, &QAction::triggered, this, [this] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue