mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Merge pull request #16659 from bdach/fix-tournament-not-loading
Fix tournament client not loading
This commit is contained in:
commit
8508e0d512
@ -61,18 +61,15 @@ namespace osu.Game.Tournament
|
|||||||
|
|
||||||
loadingSpinner.Show();
|
loadingSpinner.Show();
|
||||||
|
|
||||||
BracketLoadTask.ContinueWith(t =>
|
BracketLoadTask.ContinueWith(t => Schedule(() =>
|
||||||
{
|
{
|
||||||
if (t.IsFaulted)
|
if (t.IsFaulted)
|
||||||
{
|
{
|
||||||
Schedule(() =>
|
loadingSpinner.Hide();
|
||||||
{
|
loadingSpinner.Expire();
|
||||||
loadingSpinner.Hide();
|
|
||||||
loadingSpinner.Expire();
|
|
||||||
|
|
||||||
Logger.Error(t.Exception, "Couldn't load bracket with error");
|
Logger.Error(t.Exception, "Couldn't load bracket with error");
|
||||||
Add(new WarningBox($"Your {BRACKET_FILENAME} file could not be parsed. Please check runtime.log for more details."));
|
Add(new WarningBox($"Your {BRACKET_FILENAME} file could not be parsed. Please check runtime.log for more details."));
|
||||||
});
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -143,7 +140,7 @@ namespace osu.Game.Tournament
|
|||||||
windowMode.Value = WindowMode.Windowed;
|
windowMode.Value = WindowMode.Windowed;
|
||||||
}), true);
|
}), true);
|
||||||
});
|
});
|
||||||
});
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user