Don't queue connection (#6842)

Took 5 minutes

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2026-05-04 15:44:48 +02:00 committed by GitHub
parent d30690236a
commit 7c9fbe2be0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,11 +65,9 @@ void CardDatabase::reloadCardDatabasesAndNotify()
{
loadCardDatabases();
QMetaObject::Connection conn;
conn = connect(this, &CardDatabase::cardDatabaseLoadingFinished, this, [conn, this]() mutable {
if (loadStatus == Ok) {
notifyEnabledSetsChanged();
QObject::disconnect(conn);
});
}
}
bool CardDatabase::saveCustomTokensToFile()