Move it
Frontmatter
Revision
1
Type
feature
Status
done
Assignee
nobody
Estimate
none
Parent
Architecture review
Labels
item-27

No timestamps and no authors. Git holds both, and the log on the overview is where they are read from.

Attachments (0)

None yet.

Paste a screenshot anywhere on this card with ctrl+v. Up to 10 MB, because everybody who reads this plan clones every byte of it and git keeps a file after it is deleted.

Body

UI.Window hands back Show, Hide and IsShown at src/UI/Window.lua:493-504, and twelve callers wrap that in their own Show, Hide, Shown and Toggle over a file-local window. Four spellings of one boolean came out of it, and src/Mail/Window.lua:1097 reaches past the object into window.frame:IsShown(), which breaks the day the object grows a wrapper. src/Breakdown/Window.lua carries five names for two states; src/Dungeons/Window.lua:847-864 and src/Map/Window.lua:406-423 are identical line for line.

The fix is on the object, not in Core: Toggle, one spelling of Shown, and an optional onShow for the parts that paint on the way up.

Comments (0)

Nothing said yet.

Tab choose Enter go Esc close