Merge pull request #4694 from OmrSi/nqc-last-column

Auto-size the last column in NQC
This commit is contained in:
Nikolaj Olsson 2021-01-09 13:06:30 +01:00 committed by GitHub
commit 98e9c28f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View File

@ -378,7 +378,7 @@
this.columnHeader7.Text = "Text";
this.columnHeader7.Width = 300;
//
// columnHeader7
// columnHeader8
//
this.columnHeader8.Text = "Suggested fix";
this.columnHeader8.Width = 300;
@ -411,6 +411,8 @@
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "NetflixFixErrors";
this.ResizeEnd += new System.EventHandler(this.NetflixFixErrors_ResizeEnd);
this.Shown += new System.EventHandler(this.NetflixFixErrors_Shown);
this.groupBoxRules.ResumeLayout(false);
this.groupBoxRules.PerformLayout();
this.ResumeLayout(false);

View File

@ -268,7 +268,7 @@ namespace Nikse.SubtitleEdit.Forms
}
else
{
Logic.UiUtil.OpenFolder(Path.GetDirectoryName(MakeReport()));
UiUtil.OpenFolder(Path.GetDirectoryName(MakeReport()));
}
}
@ -279,5 +279,15 @@ namespace Nikse.SubtitleEdit.Forms
_netflixQualityController.SaveCsv(reportPath);
return reportPath;
}
private void NetflixFixErrors_ResizeEnd(object sender, EventArgs e)
{
listViewFixes.Columns[listViewFixes.Columns.Count - 1].Width = -2;
}
private void NetflixFixErrors_Shown(object sender, EventArgs e)
{
NetflixFixErrors_ResizeEnd(this, EventArgs.Empty);
}
}
}