Refactor beatmap import secondary process

Doesn't launch a new game window and now supports several files at once.
This commit is contained in:
Drew DeVault
2016-10-14 14:10:01 -04:00
parent 9426629853
commit 8e31965fb4
3 changed files with 23 additions and 18 deletions

View File

@ -72,8 +72,11 @@ namespace osu.Game
protected override void Dispose(bool isDisposing)
{
//refresh token may have changed.
Config.Set(OsuConfig.Token, API.Token);
Config.Save();
if (Config != null && API != null)
{
Config.Set(OsuConfig.Token, API.Token);
Config.Save();
}
base.Dispose(isDisposing);
}