Skip to content

Commit cfcecfd

Browse files
committed
Improve layout and ordering of Paper Wallet cryptocurrencies
1 parent 2b7b843 commit cfcecfd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

slip39/gui/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,10 @@ def groups_layout(
270270
key=f"-CRYPTO-{c}-", **B_kwds )
271271
for c in c_row
272272
]
273-
for c_row in chunker( sorted( Account.CRYPTOCURRENCIES ),
274-
int( round( math.sqrt( len( Account.CRYPTOCURRENCIES )))))
273+
for c_row in chunker(
274+
list( Account.CRYPTO_NAMES.values() ), # Retain ordering vs. CRYPTOCURRENCIES set
275+
int( round( math.sqrt( len( Account.CRYPTOCURRENCIES )) + .5 ))
276+
)
275277
], visible=LO_REC )
276278
] + [
277279
sg.Frame( 'Paper Wallet Password/Hint (empty, if no Paper Wallets desired)', [

0 commit comments

Comments
 (0)