Fix banner and tags not resetting on blank new deck (#5721)

* Fix bannerWidget not resetting when opening new blank deck

* also reset tags
This commit is contained in:
RickyRister
2025-03-15 11:44:51 -07:00
committed by GitHub
parent eb4b1c2a07
commit 7d558edb3e

View File

@@ -314,12 +314,17 @@ DeckLoader *DeckEditorDeckDockWidget::getDeckList()
return deckModel->getDeckList(); return deckModel->getDeckList();
} }
/**
* Resets the tab to the state for a blank new tab.
*/
void DeckEditorDeckDockWidget::cleanDeck() void DeckEditorDeckDockWidget::cleanDeck()
{ {
deckModel->cleanList(); deckModel->cleanList();
nameEdit->setText(QString()); nameEdit->setText(QString());
commentsEdit->setText(QString()); commentsEdit->setText(QString());
hashLabel->setText(QString()); hashLabel->setText(QString());
updateBannerCardComboBox();
deckTagsDisplayWidget->connectDeckList(deckModel->getDeckList());
} }
void DeckEditorDeckDockWidget::recursiveExpand(const QModelIndex &index) void DeckEditorDeckDockWidget::recursiveExpand(const QModelIndex &index)