protected override void Dispose(bool isDisposing) { base.Dispose(isDisposing); config.Set(OsuSetting.Token, config.Get <bool>(OsuSetting.SavePassword) ? Token : string.Empty); config.Save(); }
protected override void Dispose(bool isDisposing) { //refresh token may have changed. Config.Set(OsuConfig.Token, API.Token); Config.Save(); base.Dispose(isDisposing); }
protected override void Dispose(bool isDisposing) { base.Dispose(isDisposing); config.Set(OsuSetting.Token, config.Get <bool>(OsuSetting.SavePassword) ? Token : string.Empty); config.Save(); flushQueue(); cancellationToken.Cancel(); }
protected override void Dispose(bool isDisposing) { //refresh token may have changed. if (LocalConfig != null && API != null) { LocalConfig.Set(OsuSetting.Token, LocalConfig.Get <bool>(OsuSetting.SavePassword) ? API.Token : string.Empty); LocalConfig.Save(); } base.Dispose(isDisposing); }