1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Remove outdated WebInspector close button removal

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-06-15 10:46:12 +02:00
parent 973a533fea
commit e4a8ad5e01
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -103,15 +103,6 @@ void WebInspector::unregisterView(QWebEngineView *view)
void WebInspector::loadFinished()
{
// Show close button only when docked
if (!isWindow()) {
page()->runJavaScript(QL1S("var button = Components.dockController._closeButton;"
"button.setVisible(true);"
"button.element.onmouseup = function() {"
" window.close();"
"};"));
}
// Inspect element
if (m_inspectElement) {
m_view->triggerPageAction(QWebEnginePage::InspectElement);