mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 15:09:42 +00:00
LibWebView+UI: Generate action to enable/disable DevTools
This commit is contained in:
parent
6d30b0f4d4
commit
14d49d5a3a
Notes:
github-actions[bot]
2025-09-18 11:28:44 +00:00
Author: https://github.com/trflynn89
Commit: 14d49d5a3a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6221
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/konradekk
13 changed files with 121 additions and 112 deletions
|
@ -134,4 +134,20 @@ void Application::display_error_dialog(StringView error_message) const
|
|||
QMessageBox::warning(active_tab(), "Ladybird", qstring_from_ak_string(error_message));
|
||||
}
|
||||
|
||||
void Application::on_devtools_enabled() const
|
||||
{
|
||||
WebView::Application::on_devtools_enabled();
|
||||
|
||||
if (m_active_window)
|
||||
m_active_window->on_devtools_enabled();
|
||||
}
|
||||
|
||||
void Application::on_devtools_disabled() const
|
||||
{
|
||||
WebView::Application::on_devtools_disabled();
|
||||
|
||||
if (m_active_window)
|
||||
m_active_window->on_devtools_disabled();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue