mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 16:32:16 -07:00
refresh cards on init
This commit is contained in:
parent
b57103ed3a
commit
0f249aadbe
1 changed files with 5 additions and 0 deletions
|
|
@ -42,6 +42,11 @@ VisualDeckStorageWidget::VisualDeckStorageWidget(QWidget *parent) : QWidget(pare
|
|||
|
||||
connect(CardDatabaseManager::getInstance(), &CardDatabase::cardDatabaseLoadingFinished, this,
|
||||
&VisualDeckStorageWidget::refreshBannerCards);
|
||||
|
||||
// Don't waste time processing the cards if they're going to get refreshed anyway once the db finishes loading
|
||||
if (CardDatabaseManager::getInstance()->getLoadStatus() == LoadStatus::Ok) {
|
||||
refreshBannerCards();
|
||||
}
|
||||
}
|
||||
|
||||
void VisualDeckStorageWidget::updateSortOrder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue