Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qubqub committed Sep 20, 2023
1 parent 911a62b commit 96296ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions Views/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ private void ChangeLanguage(int lang) {
}
this.chkFallalyticsReporting.Text = Multilingual.GetWord("settings_sends_info_about_rounds_played_to_fallalytics");
//this.chkFallalyticsAnonymous.Text = Multilingual.GetWord("settings_sends_info_about_rounds_played_to_fallalytics");
this.chkFallalyticsAnonymous.Visible = false;
this.lblFallalyticsAPIKey.Text = Multilingual.GetWord("settings_enter_fallalytics_api_key");
this.lblFallalyticsDesc.Text = Multilingual.GetWord("settings_fallalytics_desc");
this.linkFallalytics.Text = $@" {Multilingual.GetWord("settings_visit_fallalytics")}";
Expand Down
18 changes: 9 additions & 9 deletions Views/Stats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2661,15 +2661,15 @@ private void LogFile_OnParsedLogLines(List<RoundInfo> round) {
Task.Run(() => {
FallalyticsReporter.Report(stat, this.CurrentSettings.FallalyticsAPIKey);
});
Task.Run(() => {
if (OnlineServiceFlag != -1 && this.StatLookup.TryGetValue(stat.Name, out LevelStats level)) {
LevelType levelType = (level?.Type).GetValueOrDefault();
if (stat.Finish.HasValue && (levelType == LevelType.Race || levelType == LevelType.CreativeRace)) {
RoundInfo filteredInfo = this.AllStats.Find(r => r.Finish.HasValue && stat.Finish.Value > r.Finish.Value && stat.ShowNameId.Equals(r.ShowNameId) && stat.Name.Equals(r.Name));
if (filteredInfo == null) { FallalyticsReporter.RegisterPb(stat, this.CurrentSettings.FallalyticsAPIKey, this.CurrentSettings.EnableFallalyticsAnonymous); }
}
}
});
// Task.Run(() => {
// if (OnlineServiceFlag != -1 && this.StatLookup.TryGetValue(stat.Name, out LevelStats level)) {
// LevelType levelType = (level?.Type).GetValueOrDefault();
// if (stat.Finish.HasValue && (levelType == LevelType.Race || levelType == LevelType.CreativeRace)) {
// RoundInfo filteredInfo = this.AllStats.Find(r => r.Finish.HasValue && stat.Finish.Value > r.Finish.Value && stat.ShowNameId.Equals(r.ShowNameId) && stat.Name.Equals(r.Name));
// if (filteredInfo == null) { FallalyticsReporter.RegisterPb(stat, this.CurrentSettings.FallalyticsAPIKey, this.CurrentSettings.EnableFallalyticsAnonymous); }
// }
// }
// });
}
} else {
continue;
Expand Down

0 comments on commit 96296ee

Please sign in to comment.