From 1af304a603d9210329d2579574e71cef3a2e8e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Wed, 9 Jul 2025 21:51:21 +0200 Subject: [PATCH] Finally yeet the bug warning in PrintingSelector Took 3 minutes --- .../printing_selector/printing_selector.cpp | 24 ------------------- .../printing_selector/printing_selector.h | 1 - 2 files changed, 25 deletions(-) diff --git a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp index 11bd87e19..978d67811 100644 --- a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp +++ b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp @@ -33,24 +33,6 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck layout = new QVBoxLayout(this); setLayout(layout); - if (PictureLoader::hasCustomArt()) { - QFrame *warningFrame = new QFrame(this); - warningFrame->setFrameShape(QFrame::StyledPanel); - - warningLabel = new QLabel(this); - warningLabel->setTextFormat(Qt::RichText); - warningLabel->setWordWrap(true); - - auto *warningLayout = new QVBoxLayout(warningFrame); - warningFrame->setLayout(warningLayout); - - warningLayout->addWidget(warningLabel); - - layout->addWidget(warningFrame); - } else { - warningLabel = nullptr; - } - widgetLoadingBufferTimer = new QTimer(this); flowWidget = new FlowWidget(this, Qt::Horizontal, Qt::ScrollBarAlwaysOff, Qt::ScrollBarAsNeeded); @@ -107,12 +89,6 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck void PrintingSelector::retranslateUi() { navigationCheckBox->setText(tr("Display Navigation Buttons")); - - if (warningLabel) { - warningLabel->setText( - tr("Warning: You appear to be using custom card art, which has known bugs when also " - "using the printing selector in this version of Cockatrice.")); - } } void PrintingSelector::printingsInDeckChanged() diff --git a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.h b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.h index 388592208..f22dece93 100644 --- a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.h +++ b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.h @@ -51,7 +51,6 @@ private: QWidget *sortAndOptionsContainer; QHBoxLayout *sortAndOptionsLayout; QCheckBox *navigationCheckBox; - QLabel *warningLabel; PrintingSelectorCardSortingWidget *sortToolBar; PrintingSelectorCardSearchWidget *searchBar; FlowWidget *flowWidget;