Ladybird: Add Ctrl+Shift+G shortcut to force a garbage collection

This commit is contained in:
Andreas Kling 2022-10-16 15:35:44 +02:00 committed by Andrew Kaster
parent ccf95631ba
commit 8b593c9884
Notes: sideshowbarker 2024-07-17 02:41:01 +09:00

View file

@ -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] {