Skip to content

Commit

Permalink
fix: analytics warning showing under wrong conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
aamiaa committed Aug 8, 2024
1 parent 08f6c1a commit ad5d522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private void LoadJoinedGuilds()
serversLv.Items.Add(lvItem);
}

if (isMissingData && tabControl1.SelectedIndex == 3)
if (isMissingData && tabControl1.SelectedIndex == 3 && !this.AnalyticsWarningShown)
{
ShowMissingAnalyticsDataWarning();
}
Expand Down Expand Up @@ -886,7 +886,7 @@ private void repoLb_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
private bool AnalyticsWarningShown = false;
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
if (DataPackage.ActivityDataStatus.MissingData == true && !AnalyticsWarningShown)
if (DataPackage.ActivityDataStatus.MissingData == true && tabControl1.SelectedIndex == 3 && !AnalyticsWarningShown)
{
ShowMissingAnalyticsDataWarning();
}
Expand Down

0 comments on commit ad5d522

Please sign in to comment.