[Fonts] Drop unused lambda captures in font-refresh handlers

This commit is contained in:
Lukas Brübach 2026-10-21 05:11:01 +02:00
parent e23efebd71
commit 70f0f14665
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ DlgSharedDecksPreview::DlgSharedDecksPreview(QWidget *parent,
titleFont.setBold(true);
titleFont.setPointSize(titleFont.pointSize() + 2);
titleLabel->setFont(titleFont);
connect(themeManager, &ThemeManager::fontsChanged, this, [this, titleLabel]() {
connect(themeManager, &ThemeManager::fontsChanged, this, [titleLabel]() {
QFont refreshedFont = themeManager->appFont(AppFont::InterfaceDefault);
refreshedFont.setBold(true);
refreshedFont.setPointSize(refreshedFont.pointSize() + 2);

View file

@ -277,7 +277,7 @@ QGroupBox *HomeWidget::createButtons()
QFont boxFont = themeManager->appFont(AppFont::InterfaceDefault);
boxFont.setPointSize(20);
box->setFont(boxFont);
connect(themeManager, &ThemeManager::fontsChanged, this, [this, box]() {
connect(themeManager, &ThemeManager::fontsChanged, this, [box]() {
QFont refreshedFont = themeManager->appFont(AppFont::InterfaceDefault);
refreshedFont.setPointSize(20);
box->setFont(refreshedFont);