enable/disable pile view checkbox if groupBy is off

This commit is contained in:
RickyRister 2024-11-29 00:28:06 -08:00
parent a01694da92
commit ac371024a7

View file

@ -142,6 +142,9 @@ void ZoneViewWidget::processGroupBy(int index)
SettingsCache::instance().setZoneViewGroupBy(option);
zone->setGroupBy(option);
// disable pile view checkbox if we're not grouping by anything
pileViewCheckBox.setEnabled(option != CardList::NoSort);
// reset sortBy if it has the same value as groupBy
if (option != CardList::NoSort &&
option == static_cast<CardList::SortOption>(sortBySelector.currentData().toInt())) {