reverse numbering

This commit is contained in:
x12sa
2026-07-12 07:28:10 +02:00
committed by holler
co-authored by holler
parent 10eb949206
commit 439f3b9e2c
@@ -339,6 +339,9 @@ class SampleStorageWidget(BECWidget, QWidget):
grid.setContentsMargins(0, 0, 0, 0)
for idx, slot in enumerate(STORAGE_SLOTS):
r, c = divmod(idx, STORAGE_COLS)
# display each row right-to-left (5..1, 10..6, ...) rather than
# left-to-right, to match the physical magazine orientation
c = STORAGE_COLS - 1 - c
cell = _SlotCell(slot, self, COLOR_SLOT_BORDER)
self._cells[slot] = cell
grid.addWidget(cell, r, c)