review: Keep previous behavior for now to always auto switch

This commit is contained in:
Valere
2025-12-03 09:01:26 +01:00
parent b85f36598c
commit a93ceeae4b
2 changed files with 10 additions and 7 deletions

View File

@@ -97,9 +97,9 @@ export function createLayoutModeSwitch(
}
// Respect user's grid choice
// XXX If we want to allow switching automatically again after we can
// return hasAutoSwitched: false here instead of keeping the previous value.
return { mode: "grid", hasAutoSwitched: acc.hasAutoSwitched };
// XXX If we want to forbid switching automatically again after we can
// return hasAutoSwitched: acc.hasAutoSwitched here instead of setting to false.
return { mode: "grid", hasAutoSwitched: false };
},
// initial value
{ mode: "grid", hasAutoSwitched: false },