Member variable.

This commit is contained in:
Lukas Brübach 2024-12-29 18:06:32 +01:00
parent e2efb6e9a8
commit ac3a128c85

View file

@ -35,7 +35,7 @@ VisualDeckStorageWidget::VisualDeckStorageWidget(QWidget *parent) : QWidget(pare
layout->addWidget(cardSizeWidget);
// Connect sorting change signal to refresh the file list
connect(sortComboBox, &QComboBox::currentIndexChanged, this, [this, sortComboBox]() {
connect(sortComboBox, &QComboBox::currentIndexChanged, this, [this]() {
sortOrder = static_cast<SortOrder>(sortComboBox->currentData().toInt());
refreshBannerCards(); // Refresh the banner cards with the new sort order
});