mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 00:53:55 -07:00
Don't queue connection (#6842)
Took 5 minutes Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
d30690236a
commit
7c9fbe2be0
1 changed files with 2 additions and 4 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue