mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
UI/Qt: Replace the Task Manager window with about:processes
This commit is contained in:
parent
67a1dd72db
commit
45d8cd5c9f
Notes:
github-actions[bot]
2025-03-19 14:04:21 +00:00
Author: https://github.com/trflynn89
Commit: 45d8cd5c9f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3967
Reviewed-by: https://github.com/shannonbooth
7 changed files with 3 additions and 114 deletions
|
@ -23,7 +23,6 @@
|
|||
#include <UI/Qt/SettingsDialog.h>
|
||||
#include <UI/Qt/StringUtils.h>
|
||||
#include <UI/Qt/TabBar.h>
|
||||
#include <UI/Qt/TaskManagerWindow.h>
|
||||
#include <UI/Qt/WebContentView.h>
|
||||
|
||||
#include <QAction>
|
||||
|
@ -383,8 +382,8 @@ BrowserWindow::BrowserWindow(Vector<URL::URL> const& initial_urls, IsPopupWindow
|
|||
task_manager_action->setIcon(load_icon_from_uri("resource://icons/16x16/app-system-monitor.png"sv));
|
||||
task_manager_action->setShortcuts({ QKeySequence("Ctrl+Shift+M") });
|
||||
inspect_menu->addAction(task_manager_action);
|
||||
QObject::connect(task_manager_action, &QAction::triggered, this, [&] {
|
||||
static_cast<Ladybird::Application*>(QApplication::instance())->show_task_manager_window();
|
||||
QObject::connect(task_manager_action, &QAction::triggered, this, [this]() {
|
||||
new_tab_from_url(URL::URL::about("processes"_string), Web::HTML::ActivateTab::Yes);
|
||||
});
|
||||
|
||||
auto* debug_menu = m_hamburger_menu->addMenu("&Debug");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue