diff --git a/OWTrack/MainForm.cs b/OWTrack/MainForm.cs index aee21b6..7c45b9f 100644 --- a/OWTrack/MainForm.cs +++ b/OWTrack/MainForm.cs @@ -38,6 +38,7 @@ namespace OWTrack InitializeComponent(); tr = new Tracker(); loadSave(); + tr.StartNewSeission(); checkStatus(); update(); label4.Text = Version; @@ -108,7 +109,6 @@ namespace OWTrack } ExeTrackCheckBx.Checked = tr.settings.TrackOW; SRCheckBx.Checked = tr.settings.TrackSR; - update(); } private string askForGamePath() @@ -157,7 +157,7 @@ namespace OWTrack ChangeInSR = tr.srDiff(), dateTime = DateTime.Now }; - tr.AddMatch(match); + tr.GetCurrentSession().AddMatch(match); } #region Events diff --git a/OWTrack/Tracker.cs b/OWTrack/Tracker.cs index 704af58..1b0dbda 100644 --- a/OWTrack/Tracker.cs +++ b/OWTrack/Tracker.cs @@ -61,12 +61,13 @@ namespace OWTrack public void StartNewSeission() { Session ses = new Session(startSR); + sessions.Add(ses); //Re do SR input!! } - public void AddMatch(Match match) + public Session GetCurrentSession() { - sessions.Last().AddMatch(match); + return sessions.Last(); } public bool owRunning() {