Skip to content

Fix empty deck when restoring main window from tray#640

Merged
manuelmayer-dev merged 1 commit into
mainfrom
fix/empty-deck-on-tray-restore
Jun 7, 2026
Merged

Fix empty deck when restoring main window from tray#640
manuelmayer-dev merged 1 commit into
mainfrom
fix/empty-deck-on-tray-restore

Conversation

@manuelmayer-dev

Copy link
Copy Markdown
Member

Showing an existing main window from the tray cycles its state through Minimized -> Normal. The custom Form raises FormWindowStateChanged on each transition, which triggers DeckView.UpdateButtons(). While minimized the button panel has a zero size, so the computed button size became negative and the deck rendered empty.

Skip the button layout when the panel has no usable size; it runs again once the window is restored.

Showing an existing main window from the tray cycles its state through Minimized -> Normal. The custom Form raises FormWindowStateChanged on each transition, which triggers DeckView.UpdateButtons(). While minimized the button panel has a zero size, so the computed button size became negative and the deck rendered empty.

Skip the button layout when the panel has no usable size; it runs again once the window is restored.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@manuelmayer-dev manuelmayer-dev merged commit 898179b into main Jun 7, 2026
1 check passed
@manuelmayer-dev manuelmayer-dev deleted the fix/empty-deck-on-tray-restore branch June 7, 2026 20:42
@manuelmayer-dev manuelmayer-dev added the bug Something isn't working label Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant