mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
Ladybird+LibWebView: Ensure existing Inspector widgets inspect the page
If the Inspector widget already exists, be sure to inspect the page when it is re-opened. However, this should be a no-op if the page was already inspected (as any existing Inspector will be reset if a new page load began). Note this is not an issue in the AppKit chrome.
This commit is contained in:
parent
41ffc69c9d
commit
451df70275
3 changed files with 7 additions and 1 deletions
|
@ -750,6 +750,8 @@ void Tab::show_inspector_window(InspectorTarget inspector_target)
|
|||
{
|
||||
if (!m_inspector_widget)
|
||||
m_inspector_widget = new InspectorWidget(this, view());
|
||||
else
|
||||
m_inspector_widget->inspect();
|
||||
|
||||
m_inspector_widget->show();
|
||||
m_inspector_widget->activateWindow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue