UI: Show "Disable" title in DevTools disable button

The "disable DevTools" button looked like a "close this notification"
button to me, and although a tooltip was set, it only showed up
immediately on the AppKit UI and not the Qt version.

This makes the behavior of clicking the disable button a lot clearer by
showing a button with "Disable" as its title.
This commit is contained in:
Jelle Raaijmakers 2025-03-20 12:30:27 +01:00 committed by Tim Flynn
commit acc9499c5d
Notes: github-actions[bot] 2025-03-20 21:45:05 +00:00
4 changed files with 6 additions and 7 deletions

View file

@ -726,8 +726,7 @@ void BrowserWindow::devtools_disabled()
void BrowserWindow::devtools_enabled()
{
auto* disable_button = new TabBarButton(create_tvg_icon_with_theme_colors("close", palette()), this);
disable_button->setToolTip("Disable DevTools");
auto* disable_button = new QPushButton("Disable", this);
connect(disable_button, &QPushButton::clicked, this, [this]() {
MUST(WebView::Application::the().toggle_devtools_enabled());