mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 12:46:35 +01:00
Remove outdated WebInspector close button removal
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
973a533fea
commit
e4a8ad5e01
@ -103,15 +103,6 @@ void WebInspector::unregisterView(QWebEngineView *view)
|
|||||||
|
|
||||||
void WebInspector::loadFinished()
|
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
|
// Inspect element
|
||||||
if (m_inspectElement) {
|
if (m_inspectElement) {
|
||||||
m_view->triggerPageAction(QWebEnginePage::InspectElement);
|
m_view->triggerPageAction(QWebEnginePage::InspectElement);
|
||||||
|
Loading…
Reference in New Issue
Block a user