Skip to content

Commit 3d6483e

Browse files
committed
gui: Keep warning within size budget
Compress the gate docstring without changing behavior. This leaves the combined #10 + #28 GUI at 1,997 non-comment lines, below the enforced 2,000-line budget.
1 parent 8f1001f commit 3d6483e

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎src/codex32_gui/pages.py‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,15 +1132,7 @@ def following() -> Adw.NavigationPage:
11321132
def _guess_gate_page(
11331133
view: Adw.NavigationView, following: Callable[[], Adw.NavigationPage]
11341134
) -> Adw.NavigationPage:
1135-
"""Invariant 5: disclose nothing about the candidate until literal YES is typed.
1136-
1137-
Thirteen or fifteen unreadable characters at the end of a card are the whole
1138-
checksum, depending on card length, so this screen is also what someone
1139-
filling in the last squares of a hand-made backup reaches. It has to speak to
1140-
both of them: a person recovering a damaged card, who may be shown something
1141-
simply wrong, and a person completing new data, whose earlier mistakes this
1142-
would set in stone.
1143-
"""
1135+
"""Invariant 5: disclose nothing until YES; whole-checksum completion reaches this gate too."""
11441136
field = Gtk.Entry(placeholder_text="YES")
11451137
show = _button("Show the guess", lambda: view.push(following()), style="destructive-action")
11461138
show.set_sensitive(False)

0 commit comments

Comments
 (0)