diff --git a/cockatrice/src/client/ui/widgets/cards/deck_preview_card_picture_widget.cpp b/cockatrice/src/client/ui/widgets/cards/deck_preview_card_picture_widget.cpp index eff64e83d..8521739b0 100644 --- a/cockatrice/src/client/ui/widgets/cards/deck_preview_card_picture_widget.cpp +++ b/cockatrice/src/client/ui/widgets/cards/deck_preview_card_picture_widget.cpp @@ -26,6 +26,7 @@ DeckPreviewCardPictureWidget::DeckPreviewCardPictureWidget(QWidget *parent, const Qt::Alignment alignment) : CardInfoPictureWithTextOverlayWidget(parent, hoverToZoomEnabled, textColor, outlineColor, fontSize, alignment) { + // TODO Make this hold the deckloader singleClickTimer = new QTimer(this); singleClickTimer->setSingleShot(true); connect(singleClickTimer, &QTimer::timeout, this, [this]() { emit imageClicked(lastMouseEvent, this); }); diff --git a/cockatrice/src/client/ui/widgets/visual_deck_storage/visual_deck_storage_widget.cpp b/cockatrice/src/client/ui/widgets/visual_deck_storage/visual_deck_storage_widget.cpp index 3c3ca9cbf..ad609cb41 100644 --- a/cockatrice/src/client/ui/widgets/visual_deck_storage/visual_deck_storage_widget.cpp +++ b/cockatrice/src/client/ui/widgets/visual_deck_storage/visual_deck_storage_widget.cpp @@ -96,6 +96,8 @@ void VisualDeckStorageWidget::refreshBannerCards() flowWidget->clearLayout(); // Clear existing widgets in the flow layout foreach (const QString &file, filteredFiles) { + // TODO: We load the deck here to retrieve information (we sorta really have to) but since we do the work, + // we may as well persist the deckLoader to save ourselves some heavy lifting later? auto deckLoader = new DeckLoader(); deckLoader->loadFromFile(file, DeckLoader::CockatriceFormat); deckListModel->setDeckList(new DeckLoader(*deckLoader));