mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-04-20 10:40:23 +00:00
fix highscore glitch
This commit is contained in:
parent
e131f72a9b
commit
2d8831c29c
1 changed files with 13 additions and 2 deletions
|
@ -981,6 +981,10 @@ namespace ShiftOS.WinForms.Applications
|
|||
var hs = unite.GetPongHighscores();
|
||||
foreach (var score in hs.Highscores)
|
||||
{
|
||||
if(this.ParentForm.Visible == false)
|
||||
{
|
||||
Thread.CurrentThread.Abort();
|
||||
}
|
||||
string username = unite.GetDisplayNameId(score.UserId);
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
|
@ -994,8 +998,15 @@ namespace ShiftOS.WinForms.Applications
|
|||
}
|
||||
catch
|
||||
{
|
||||
Infobox.Show("Service unavailable.", "The Pong Highscore service is unavailable at this time.");
|
||||
this.Invoke(new Action(pnlgamestats.BringToFront));
|
||||
try
|
||||
{
|
||||
if (this.ParentForm.Visible == true)
|
||||
{
|
||||
Infobox.Show("Service unavailable.", "The Pong Highscore service is unavailable at this time.");
|
||||
this.Invoke(new Action(pnlgamestats.BringToFront));
|
||||
}
|
||||
}
|
||||
catch { } //JUST. ABORT. THE. FUCKING. THREAD.
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue