mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 09:22:15 -07:00
enable/disable pile view checkbox if groupBy is off
This commit is contained in:
parent
a01694da92
commit
ac371024a7
1 changed files with 3 additions and 0 deletions
|
|
@ -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())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue