check to disable pile view checkbox on init

This commit is contained in:
RickyRister 2024-11-29 01:55:11 -08:00
parent e8261f1939
commit 76ee4d10a8

View file

@ -126,6 +126,10 @@ ZoneViewWidget::ZoneViewWidget(Player *_player,
groupBySelector.setCurrentIndex(groupBySelector.findData(SettingsCache::instance().getZoneViewGroupBy()));
sortBySelector.setCurrentIndex(sortBySelector.findData(SettingsCache::instance().getZoneViewSortBy()));
pileViewCheckBox.setChecked(SettingsCache::instance().getZoneViewPileView());
if (CardList::NoSort == static_cast<CardList::SortOption>(groupBySelector.currentData().toInt())) {
pileViewCheckBox.setEnabled(false);
}
}
retranslateUi();