mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
revert the refactor since I don't know if there's a reason they did it that way
This commit is contained in:
parent
d1a3d631ec
commit
5a7598ab59
1 changed files with 8 additions and 2 deletions
|
|
@ -80,8 +80,14 @@ bool DeckPreviewWidget::checkVisibility() const
|
||||||
|
|
||||||
void DeckPreviewWidget::updateTagsVisibility(bool visible)
|
void DeckPreviewWidget::updateTagsVisibility(bool visible)
|
||||||
{
|
{
|
||||||
if (deckTagsDisplayWidget) {
|
if (!deckTagsDisplayWidget) {
|
||||||
deckTagsDisplayWidget->setHidden(!visible);
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (visible) {
|
||||||
|
deckTagsDisplayWidget->setVisible(true);
|
||||||
|
} else {
|
||||||
|
deckTagsDisplayWidget->setHidden(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue