Skip to content

Commit f2c5627

Browse files
committed
Try to wrap download errors so they can be seen in full
1 parent c130522 commit f2c5627

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

GUI/Dialogs/DownloadsFailedDialog.Designer.cs

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GUI/Dialogs/DownloadsFailedDialog.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ public DownloadsFailedDialog(
6666
.ToList();
6767
DownloadsGrid.DataSource = new BindingList<DownloadRow>(rows);
6868
ClientSize = new Size(ClientSize.Width,
69-
ExplanationLabel.Height
70-
+ ExplanationLabel.Padding.Vertical
71-
+ DownloadsGrid.ColumnHeadersHeight
72-
+ (DownloadsGrid.RowCount
73-
* DownloadsGrid.RowTemplate.Height)
74-
+ DownloadsGrid.Margin.Vertical
75-
+ DownloadsGrid.Padding.Vertical
76-
+ BottomButtonPanel.Height);
69+
ExplanationLabel.Height
70+
+ ExplanationLabel.Padding.Vertical
71+
+ DownloadsGrid.ColumnHeadersHeight
72+
+ DownloadsGrid.Rows.OfType<DataGridViewRow>()
73+
.Sum(r => r.Height)
74+
+ DownloadsGrid.Margin.Vertical
75+
+ DownloadsGrid.Padding.Vertical
76+
+ BottomButtonPanel.Height);
7777
}
7878

7979
[ForbidGUICalls]

0 commit comments

Comments
 (0)