Skip to content

Commit

Permalink
Annict認証系のUIロジックも非同期に silane#7
Browse files Browse the repository at this point in the history
  • Loading branch information
noriokun4649 committed Feb 18, 2021
1 parent e15d268 commit 7204e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TVTComment/ViewModels/SettingsWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ public SettingsWindowViewModel(Model.TVTComment model)
}
});

AnnictOAuthCertificationCommand = new DelegateCommand(() => {
AnnictOAuthCertificationCommand = new DelegateCommand(async () => {
try
{
var token = annict.GetToken(AnnictPin.Value);
var token = await annict.GetTokenAsync(AnnictPin.Value);
twitter.SetAnnictToken(token);
}
catch (Exception e)
Expand Down

0 comments on commit 7204e0d

Please sign in to comment.