Token fix

If "Save Password" is checked, Token will be saved
This commit is contained in:
Andrey Zavadskiy 2016-12-21 00:37:54 +03:00
parent d519e28dda
commit c7de449713
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ protected override void Dispose(bool isDisposing)
//refresh token may have changed.
if (Config != null && API != null)
{
Config.Set(OsuConfig.Token, API.Token);
Config.Set(OsuConfig.Token, Config.Get<bool>(OsuConfig.SavePassword) ? API.Token : string.Empty);
Config.Save();
}