Skip to content

Commit 971e716

Browse files
committed
Fix that hit counter wasn't updated upon application start
1 parent b9bbb6c commit 971e716

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Sources/AppConfig.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ private void LoadSettings()
177177
if (_settings.MainWidth > 400) this.Width = _settings.MainWidth;
178178
if (_settings.MainHeight > 400) this.Height = _settings.MainHeight;
179179

180-
om.FilePathIn = _settings.Inputfile;
181-
om.FilePathOut = _settings.OutputFile;
182180
om.ShowAttemptsCounter = _settings.ShowAttemptsCounter;
183181
om.ShowHeadline = _settings.ShowHeadline;
184182
om.ShowSessionProgress = _settings.ShowSessionProgress;
@@ -190,6 +188,9 @@ private void LoadSettings()
190188
om.StyleFontUrl = _settings.StyleFontUrl;
191189
om.StyleFontName = _settings.StyleFontName;
192190
om.StyleDesiredWidth = _settings.StyleDesiredWidth;
191+
192+
om.FilePathIn = _settings.Inputfile;
193+
om.FilePathOut = _settings.OutputFile; // setting output filepath will allow writing output, so keep this line last
193194
om.DataUpdatePending = false;
194195
}
195196

Sources/Form1.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ private void Form1_Load(object sender, EventArgs e)
5858
Text = Text + " - v" + Application.ProductVersion + " " + OsLayer.Name;
5959
LoadSettings();
6060
UpdateProgressAndTotals();
61+
om.Update(true); // Write very first output once after application start
6162
}
6263

6364
private void Form1_FormClosing(object sender, FormClosingEventArgs e)

0 commit comments

Comments
 (0)