mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ladybird: Add Ctrl+Shift+G shortcut to force a garbage collection
This commit is contained in:
parent
ccf95631ba
commit
8b593c9884
Notes:
sideshowbarker
2024-07-17 02:41:01 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8b593c9884 Pull-request: https://github.com/SerenityOS/serenity/pull/16583 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/linusg
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…
Reference in a new issue