Skip to content

Commit

Permalink
added menu item for showing the last log file
Browse files Browse the repository at this point in the history
  • Loading branch information
mastersign committed Jul 6, 2018
1 parent 337416c commit a4946da
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 51 deletions.
98 changes: 54 additions & 44 deletions BenchManager/BenchDashboard/SetupForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion BenchManager/BenchDashboard/SetupForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private void SetupForm_Load(object sender, EventArgs e)
InitializeAppListColumnsMenu();
InitializeAppList();
UpdatePendingCounts();
CoreBusyChangedHandler(core, EventArgs.Empty);

if (core.SetupOnStartup)
{
Expand Down Expand Up @@ -208,6 +209,7 @@ private void CoreBusyChangedHandler(object sender, EventArgs e)
{
tsmi.Enabled = !busy;
}
tsmiShowLastLogfile.Enabled = !busy && core.LastActionResult?.LogFile != null;
btnAuto.Image = !busy
? Resources.do_32
: Resources.stop_32;
Expand Down Expand Up @@ -702,7 +704,7 @@ private void CloseHandler(object sender, EventArgs e)

private void ShowLastLogHandler(object sender, EventArgs e)
{
var logFile = core?.LastActionResult?.LogFile;
var logFile = core.LastActionResult?.LogFile;
if (string.IsNullOrWhiteSpace(logFile)) return;
if (File.Exists(logFile))
{
Expand Down
12 changes: 6 additions & 6 deletions BenchManager/BenchDashboard/SetupForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>266, 17</value>
</metadata>
<metadata name="menuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="toolStripSeparator4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
Expand All @@ -135,6 +129,12 @@
<metadata name="toolStripSeparator1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>266, 17</value>
</metadata>
<metadata name="menuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>62</value>
</metadata>
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Add a link to the GitHub diff like

[Unreleased]: https://github.com/mastersign/bench/compare/master...dev

### Added

* Menu item _View_ &rarr; _Last Logfile_

## [0.20.2] - 2018-06-21

[0.20.2]: https://github.com/mastersign/bench/compare/v0.20.1...v0.20.2
Expand Down

0 comments on commit a4946da

Please sign in to comment.