mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
LibWebView: Display each tab's title in the Task Manager
This allows us to more easily differentiate between WebContent processes in the Task Manager at a glance.
This commit is contained in:
committed by
Andrew Kaster
parent
2fc52657b6
commit
2851c05dee
@@ -197,7 +197,7 @@ String ProcessManager::generate_html()
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Type</th>
|
||||
<th>Name</th>
|
||||
<th>PID</th>
|
||||
<th>Memory Usage</th>
|
||||
<th>CPU %</th>
|
||||
@@ -210,6 +210,8 @@ String ProcessManager::generate_html()
|
||||
builder.append("<tr>"sv);
|
||||
builder.append("<td>"sv);
|
||||
builder.append(WebView::process_name_from_type(process.type));
|
||||
if (process.title.has_value())
|
||||
builder.appendff(" - {}", *process.title);
|
||||
builder.append("</td>"sv);
|
||||
builder.append("<td>"sv);
|
||||
builder.append(MUST(String::number(process.pid)));
|
||||
|
||||
Reference in New Issue
Block a user