Skip to content

Commit e47e72e

Browse files
committed
Truncate excess status length to avoid resizing window
1 parent f9442d5 commit e47e72e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slip39/gui/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def app(
556556
while event not in events_termination:
557557
# Create window (for initial window.read()), or update status
558558
if window:
559-
window['-STATUS-'].update( status or 'OK', font=font_bold if status_error else font )
559+
window['-STATUS-'].update( f"{status or 'OK':.145}{'...' if len(status)>145 else ''}", font=font_bold if status_error else font )
560560
window['-SAVE-'].update( disabled=status_error )
561561
window['-RECOVERY-'].update( f"of {len(groups)}" )
562562
window['-SD-SEED-F-'].expand( expand_x=True )

0 commit comments

Comments
 (0)