[Settings] Split cache_settings into multiple files

Took 9 minutes

Took 4 minutes
This commit is contained in:
Lukas Brübach 2026-07-17 08:09:36 -04:00 • committed by Lukas Brübach
parent 3f9dbdb33b
commit 4d550507f0
136 changed files with 5124 additions and 2993 deletions

View file

@ -57,7 +57,7 @@ bool ZoneViewZoneLogic::prepareAddCard(int x)
// autoclose check is done both here and in removeCard
if (cards.isEmpty() && !doInsert && SettingsCache::instance().getCloseEmptyCardView()) {
if (cards.isEmpty() && !doInsert && SettingsCache::instance().interface().getCloseEmptyCardView()) {
emit closeView();
}
@ -144,7 +144,7 @@ void ZoneViewZoneLogic::removeCard(int position, bool toNewZone)
// card gets dragged within the view.
// Another autoclose check is done in prepareAddCard so that the view autocloses if the last card was moved to an
// unrevealed portion of the same zone.
if (cards.isEmpty() && SettingsCache::instance().getCloseEmptyCardView() && toNewZone) {
if (cards.isEmpty() && SettingsCache::instance().interface().getCloseEmptyCardView() && toNewZone) {
emit closeView();
return;
}