mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
Add filter connection after toggling buttons and emit on end. (#5858)
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
81a911dc11
commit
f98aad57d3
1 changed files with 2 additions and 2 deletions
|
|
@ -64,13 +64,13 @@ void VisualDatabaseDisplaySetFilterWidget::createSetButtons()
|
|||
setButtons[shortName] = button;
|
||||
|
||||
// Connect toggle signal
|
||||
connect(button, &QPushButton::toggled, this,
|
||||
[this, shortName](bool checked) { handleSetToggled(shortName, checked); });
|
||||
if (setsActivated < setsToPreactivate) {
|
||||
setsActivated++;
|
||||
activeSets[shortName] = true;
|
||||
button->setChecked(true);
|
||||
}
|
||||
connect(button, &QPushButton::toggled, this,
|
||||
[this, shortName](bool checked) { handleSetToggled(shortName, checked); });
|
||||
}
|
||||
updateSetFilter();
|
||||
updateSetButtonsVisibility(); // Ensure visibility is updated initially
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue