We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c8c406 + 19ec8ee commit 898179bCopy full SHA for 898179b
1 file changed
src/MacroDeck/GUI/MainWindowViews/DeckView.cs
@@ -147,6 +147,14 @@ public void UpdateButtons(bool clear = false)
147
return;
148
}
149
150
+ // While the window is minimized the button panel collapses to a zero size, which would make
151
+ // the computed button size negative and render the deck empty. Skip the layout in that case;
152
+ // it runs again once the window is restored to a usable size.
153
+ if (buttonPanel.Width <= 0 || buttonPanel.Height <= 0)
154
+ {
155
+ return;
156
+ }
157
+
158
if (clear)
159
{
160
foreach (RoundedButton roundedButton in buttonPanel.Controls)
0 commit comments