mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
Ladybird: Fix title branding when switching tabs
This commit is contained in:
parent
ace44dc13b
commit
ea7e637b6e
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ BrowserWindow::BrowserWindow(Core::EventLoop& event_loop)
|
|||
QObject::connect(new_tab_action, &QAction::triggered, this, &BrowserWindow::new_tab);
|
||||
QObject::connect(quit_action, &QAction::triggered, this, &QMainWindow::close);
|
||||
QObject::connect(m_tabs_container, &QTabWidget::currentChanged, [this](int index) {
|
||||
setWindowTitle(m_tabs_container->tabText(index));
|
||||
setWindowTitle(QString("%1 - Ladybird").arg(m_tabs_container->tabText(index)));
|
||||
setWindowIcon(m_tabs_container->tabIcon(index));
|
||||
});
|
||||
QObject::connect(m_tabs_container, &QTabWidget::tabCloseRequested, this, &BrowserWindow::close_tab);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue