Fixed logic for plugin settings window testing auth

dashboard
Pat Hartl 2023-01-14 15:12:02 -06:00
parent ae6cd7f906
commit 78b1a6686c
1 changed files with 3 additions and 3 deletions

View File

@ -41,8 +41,8 @@ namespace LANCommander.PlaynitePlugin
PART_AuthenticateLabel.Content = Settings.InstallDirectory;
var token = new AuthToken()
{
AccessToken = Plugin.Settings.AccessToken,
RefreshToken = Plugin.Settings.RefreshToken,
AccessToken = Settings.AccessToken,
RefreshToken = Settings.RefreshToken,
};
var task = Task.Run(() => Plugin.LANCommander.ValidateToken(token))
@ -52,7 +52,7 @@ namespace LANCommander.PlaynitePlugin
{
Dispatcher.Invoke(new Action(() =>
{
if (antecedent.Result == true)
if (antecedent.Result == false)
{
PART_AuthenticateLabel.Content = "Authentication failed!";
PART_AuthenticationButton.IsEnabled = true;