Skip to content

Fix wardrobe close hiding all UI content#16

Merged
narayan24 merged 1 commit into
masterfrom
fix/wardrobe-close-visibility
May 14, 2026
Merged

Fix wardrobe close hiding all UI content#16
narayan24 merged 1 commit into
masterfrom
fix/wardrobe-close-visibility

Conversation

@narayan24
Copy link
Copy Markdown
Owner

Summary

  • After opening and closing the Wardrobe, all text/content disappeared from the main view
  • ShowWardrobe() hides mainContent (WPF airspace workaround for the WebBrowser control)
  • CloseWardrobe() only restored Visibility.Visible in the read-only branch; the normal branch called InitContent() directly without restoring visibility first
  • Fix: restore mainContent.Visibility = Visible before calling InitContent() in the normal branch

Test plan

  • Open Wardrobe from any room
  • Close Wardrobe via X button or clicking outside
  • Verify room text and choices render correctly
  • Repeat with read-only wardrobe (opened from inventory item) — same result

🤖 Generated with Claude Code

ShowWardrobe() sets mainContent to Hidden for the WPF airspace
workaround, but CloseWardrobe() only restored Visible in the
read-only branch — the normal branch called InitContent() without
restoring visibility first, leaving the WebBrowser permanently hidden.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@narayan24 narayan24 merged commit 3613c38 into master May 14, 2026
2 checks passed
@narayan24 narayan24 deleted the fix/wardrobe-close-visibility branch May 14, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant