Don't queue connection

Took 5 minutes
This commit is contained in:
Lukas Brübach 2026-05-04 15:41:45 +02:00
parent d30690236a
commit f64ea8b01a

View file

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