leave comment

This commit is contained in:
RickyRister 2025-02-22 19:30:20 -08:00
parent 9b1c161165
commit 5382b89243

View file

@ -160,7 +160,7 @@ void VisualDeckStorageWidget::createRootFolderWidget()
folderWidget = new VisualDeckStorageFolderDisplayWidget(this, this, SettingsCache::instance().getDeckPath(), false,
showFoldersCheckBox->isChecked());
scrollArea->setWidget(folderWidget);
scrollArea->setWidget(folderWidget); // this automatically destroys the old folderWidget
scrollArea->widget()->setMaximumWidth(scrollArea->viewport()->width());
scrollArea->widget()->adjustSize();
updateSortOrder();